Function at 0x438b90
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x12c
push ebx
xor ebx, ebx
push esi
push 0x490b30
mov dword [esp + 0x2c], ebx
mov dword [esp + 0xc], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], ebx
call fcn.00460770
mov ecx, dword [esp + 0x140]
mov edx, dword [ecx + 0x1c]
mov edx, dword [edx + 0x2c]
add esp, 4
cmp edx, ebx
mov dword [0x4a12d4], eax
je 0x438bda
lea esi, [eax + 0x20]
mov cl, byte [edx]
inc edx
mov byte [esi], cl
inc esi
cmp cl, bl
jne 0x438bd0
push eax
call fcn.004620b0
add esp, 4
test eax, eax
je 0x438bf5
pop esi
mov eax, 0xc
pop ebx
add esp, 0x12c
ret
mov ecx, dword [0x4a12d4]
mov eax, dword [ecx + 0x14]
push edi
add eax, 0x18
push 0x3c
push eax
push ecx
call fcn.00460440
mov edi, eax
add esp, 0xc
cmp edi, ebx
je 0x438c89
mov ecx, dword [0x4a12d4]
lea eax, [esp + 0x1c]
push eax
push edi
push ecx
call fcn.004605f0
add esp, 0xc
test eax, eax
jne 0x438c33
inc dword [esp + 0xc]
jmp 0x438c6e
mov edx, dword [esp + 0x140]
mov esi, dword [esp + 0x1c]
mov eax, dword [edx + 0x10]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x438c65
cmp cl, bl
je 0x438c61
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x438c65
add eax, 2
add esi, 2
cmp cl, bl
jne 0x438c41
xor eax, eax
jmp 0x438c6a
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x438c85
mov eax, dword [0x4a12d4]
push edi
push eax
call fcn.00460510
mov edi, eax
add esp, 8
cmp edi, ebx
jne 0x438c14
jmp 0x438c89
cmp edi, ebx
jne 0x438ca7
mov ecx, dword [0x4a12d4]
push ecx
call fcn.00460f50
add esp, 4
pop edi
pop esi
mov eax, 0xc
pop ebx
add esp, 0x12c
ret
mov eax, dword [0x4a12d4]
lea edx, [esp + 0x10]
push edx
push 0x9f
push edi
push eax
call fcn.00460390
add esp, 0x10
cmp eax, ebx
je 0x438d0c
mov edx, dword [0x4a12d4]
lea ecx, [esp + 0x20]
push ecx
push eax
push edx
call fcn.004606f0
add esp, 0xc
cmp eax, ebx
je 0x438d0c
mov esi, 0xa1
cmp dword [esp + 0x20], esi
jne 0x438cf3
mov ecx, dword [esp + 0x140]
or dword [ecx + 0xc], 1
mov edx, dword [0x4a12d4]
lea ecx, [esp + 0x20]
push ecx
push eax
push edx
call fcn.00460570
add esp, 0xc
cmp eax, ebx
jne 0x438ce2
mov ecx, dword [0x4a12d4]
lea eax, [esp + 0x10]
push eax
push 0x84
push edi
push ecx
call fcn.00460390
add esp, 0x10
cmp eax, ebx
jne 0x438d45
mov edx, dword [0x4a12d4]
push edx
call fcn.00460f50
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x12c
ret
push ebp
push 0x85
push eax
mov eax, dword [0x4a12d4]
push eax
call fcn.00460440
mov ebp, eax
add esp, 0xc
cmp ebp, ebx
je 0x43912f
mov edx, dword [0x4a12d4]
lea ecx, [esp + 0x20]
push ecx
push ebp
push edx
call fcn.004605f0
add esp, 0xc
cmp eax, ebx
jne 0x438d86
inc dword [esp + 0x10]
jmp 0x439115
mov edx, dword [0x4a12d4]
lea ecx, [esp + 0x34]
push ecx
push eax
push edx
call fcn.00460570
add esp, 0xc
test eax, eax
jne 0x438da8
inc dword [esp + 0x10]
jmp 0x439115
mov eax, dword [esp + 0x34]
add eax, 0xffffffef
cmp eax, 0x8c
ja case.0x438dbd.18
movzx eax, byte [eax + 0x439174]
jmp dword [eax*4 + 0x43915c]
mov esi, 2
jmp 0x438de6
xor esi, esi
jmp 0x438de6
mov esi, 1
jmp 0x438de6
mov esi, 4
jmp 0x438de6
inc dword [esp + 0x10]
mov esi, 8
mov edx, dword [0x4a12d4]
lea ecx, [esp + 0x14]
push ecx
push 0x8a
push ebp
push edx
call fcn.00460390
add esp, 0x10
cmp eax, ebx
je 0x438e2a
mov edx, dword [0x4a12d4]
lea ecx, [esp + 0x1c]
push ecx
push eax
push edx
call fcn.004605f0
add esp, 0xc
test eax, eax
jne case.default.0x438e79
inc dword [esp + 0x10]
jmp 0x439115
mov ecx, dword [0x4a12d4]
lea eax, [esp + 0x14]
push eax
push 0x8b
push ebp
push ecx
call fcn.00460390
add esp, 0x10
cmp eax, ebx
je case.default.0x438e79
lea edx, [esp + 0x14]
push edx
mov edx, dword [0x4a12d4]
lea ecx, [esp + 0x3c]
push ecx
push eax
push edx
call fcn.004603f0
mov ecx, dword [esp + 0x48]
add ecx, 0xffffff74
add esp, 0x10
cmp ecx, 4
ja case.default.0x438e79
jmp dword [ecx*4 + 0x439204]
mov edx, dword [0x4a12d4]
lea ecx, [esp + 0x18]
push ecx
push eax
push edx
call fcn.00460630
mov eax, dword [esp + 0x14c]
mov ecx, dword [eax + 0x2c]
push 0xfe
push ecx
lea edx, [esp + 0x50]
push edx
call dword [0x47819c]
mov eax, dword [esp + 0x30]
push eax
lea ecx, [esp + 0x58]
push ecx
call fcn.00413cb0
lea edx, [esp + 0x5c]
add esp, 0x20
mov dword [esp + 0x1c], edx
jmp case.default.0x438e79
mov edx, dword [0x4a12d4]
lea ecx, [esp + 0x18]
push ecx
push eax
push edx
call fcn.00460630
mov eax, dword [esp + 0x24]
push eax
lea ecx, [esp + 0x4c]
push ecx
mov word [esp + 0x50], 0x2e
call fcn.00413cb0
lea edx, [esp + 0x50]
push edx
call fcn.00416a70
lea eax, [esp + 0x54]
add esp, 0x18
mov dword [esp + 0x1c], eax
jmp case.default.0x438e79
mov edx, dword [0x4a12d4]
lea ecx, [esp + 0x1c]
push ecx
push eax
push edx
call fcn.00460630
add esp, 0xc
jmp case.default.0x438e79
mov edx, dword [0x4a12d4]
lea ecx, [esp + 0x18]
push ecx
push eax
push edx
call fcn.00460630
mov eax, dword [esp + 0x150]
mov ecx, dword [eax + 0x1c]
mov edx, dword [ecx + 0x2c]
push 0xfe
push edx
lea eax, [esp + 0x50]
push eax
call dword [0x47819c]
lea ecx, [esp + 0x54]
push ebx
push ecx
call fcn.00437f10
mov edx, dword [esp + 0x38]
push edx
lea eax, [esp + 0x60]
push eax
call fcn.00413cb0
add esp, 0x28
jmp 0x438fb5
lea edx, [esp + 0x18]
push edx
push eax
mov eax, dword [0x4a12d4]
push eax
call fcn.004605f0
mov ecx, dword [esp + 0x24]
push ecx
call dword [0x4781d4]
mov edx, dword [esp + 0x28]
push edx
push 0x479520
push eax
mov dword [esp + 0x38], eax
lea eax, [esp + 0x58]
push str._s_s_s
push eax
call dword [0x4781dc]
add esp, 0x24
lea ecx, [esp + 0x3c]
mov dword [esp + 0x1c], ecx
mov eax, dword [0x4a12d4]
lea edx, [esp + 0x14]
push edx
push 0x9e
push ebp
push eax
call fcn.00460390
add esp, 0x10
cmp eax, ebx
je 0x438ffc
mov edx, dword [0x4a12d4]
lea ecx, [esp + 0x30]
push ecx
push eax
push edx
call fcn.00460670
add esp, 0xc
test eax, eax
jne 0x438ffc
inc dword [esp + 0x10]
jmp 0x439115
mov ecx, dword [0x4a12d4]
lea eax, [esp + 0x14]
push eax
push 0x86
push ebp
push ecx
call fcn.00460390
add esp, 0x10
cmp eax, ebx
je 0x43903b
lea edx, [esp + 0x2c]
push edx
push eax
mov eax, dword [0x4a12d4]
push eax
call fcn.004605f0
add esp, 0xc
test eax, eax
jne 0x43903b
inc dword [esp + 0x10]
jmp 0x439115
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x24]
push ebx
push edx
mov edx, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x154]
push esi
push ecx
mov ecx, dword [eax + 0x10]
push edx
mov edx, dword [esp + 0x15c]
push ecx
push ebx
push edx
call fcn.00438840
mov esi, eax
mov eax, dword [esp + 0x3c]
add esp, 0x28
cmp eax, ebx
je 0x439089
cmp eax, 0x35
je 0x439089
mov dword [esp + 0x28], 0x3a
mov eax, dword [0x4a12d4]
push 0x89
push ebp
push eax
call fcn.00460440
mov edi, eax
add esp, 0xc
cmp edi, ebx
je 0x439115
add esi, 0x38
jmp 0x4390b0
mov edx, dword [0x4a12d4]
lea ecx, [esp + 0x20]
push ecx
push edi
push edx
call fcn.004605f0
add esp, 0xc
test eax, eax
je 0x4390fd
mov eax, dword [esp + 0x20]
cmp eax, ebx
jne 0x4390d5
mov dword [esi], ebx
jmp 0x4390fd
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4390d8
sub eax, edx
inc eax
push eax
call fcn.0040c100
mov dword [esi], eax
mov ecx, dword [esp + 0x24]
add esp, 4
mov edx, eax
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
cmp al, bl
jne 0x4390f3
mov eax, dword [0x4a12d4]
push edi
push eax
add esi, 4
call fcn.00460510
mov edi, eax
add esp, 8
cmp edi, ebx
jne 0x4390b0
mov ecx, dword [0x4a12d4]
push ebp
push ecx
call fcn.00460510
mov ebp, eax
add esp, 8
cmp ebp, ebx
jne 0x438d64
mov edx, dword [0x4a12d4]
push edx
call fcn.00460f50
mov eax, dword [esp + 0x14]
add esp, 4
cmp eax, ebx
pop ebp
mov eax, 0xc
jne 0x439150
mov eax, dword [esp + 0x24]
pop edi
pop esi
pop ebx
add esp, 0x12c
ret