Function at 0x437280
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [esp + 4]
sub esp, 8
push ebx
push ebp
push esi
push edi
push eax
call fcn.0043c390
mov ebx, dword [esp + 0x38]
mov edi, dword [esp + 0x2c]
mov ebp, dword [esp + 0x28]
mov esi, eax
add esp, 4
test esi, esi
je 0x4372d1
mov ecx, dword [esp + 0x20]
push ecx
push edi
push ebp
push esi
call fcn.0043b9d0
add esp, 0x10
test eax, eax
mov dword [ebx], eax
je 0x4372d1
xor edx, edx
cmp eax, 0xe
setne dl
pop edi
dec edx
and edx, esi
pop esi
pop ebp
mov eax, edx
pop ebx
add esp, 8
ret
mov eax, dword [esp + 0x30]
test al, 1
jne 0x437379
cmp eax, 1
je 0x437379
test al, 2
jne 0x4372ef
cmp eax, 2
jne 0x437369
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x20]
push ebx
push eax
push edi
push ebp
push ecx
call fcn.0045cac0
mov esi, eax
add esp, 0x14
test esi, esi
mov dword [esp + 0x14], esi
jne 0x437339
mov eax, dword [0x4a1298]
test al, 0x60
jne 0x43731c
cmp eax, 0x60
jne 0x437329
push str.Error__n
call fcn.00437260
add esp, 4
pop edi
pop esi
pop ebp
mov dword [ebx], 0x14
xor eax, eax
pop ebx
add esp, 8
ret
mov eax, dword [ebx]
cmp eax, 0x35
jne 0x437365
mov eax, dword [0x4a1298]
test al, 0x60
jne 0x43734e
cmp eax, 0x60
jne 0x43735b
push str._nWarning:_attempt_to_read_ascii_file_which_has_already_been_read_once._Ignoring._n
call fcn.00437260
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 8
ret
test eax, eax
je 0x4373d0
pop edi
pop esi
pop ebp
mov dword [ebx], 0x14
xor eax, eax
pop ebx
add esp, 8
ret
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x20]
push ebx
push edx
push edi
push ebp
push eax
call fcn.0045de90
add esp, 0x14
test eax, eax
mov dword [esp + 0x14], eax
jne 0x4373a4
mov eax, dword [0x4a1298]
test eax, eax
jle 0x437329
jmp 0x43731c
cmp dword [ebx], 0x35
jne 0x4373d0
mov eax, dword [0x4a1298]
test al, 0x60
jne 0x4373b7
cmp eax, 0x60
jne 0x437425
push str._nWarning:_attempt_to_read_binary_file_which_has_already_been_read_once._Ignoring._n
call fcn.00437260
mov eax, dword [esp + 0x18]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov eax, dword [0x4a12a0]
test eax, eax
jne 0x4373fd
mov ecx, dword [esp + 0x14]
push ecx
call fcn.0043d8f0
add esp, 4
test eax, eax
mov dword [0x4a12a0], eax
jne 0x4373fd
pop edi
pop esi
pop ebp
mov dword [ebx], 1
pop ebx
add esp, 8
ret
mov edi, dword [0x4a4c78]
test edi, edi
mov dword [0x4a3238], 1
mov dword [esp + 0x10], edi
jne 0x437435
mov dword [0x4a3238], 0
mov dword [ebx], 0
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov edi, dword [esp + 0x10]
mov eax, dword [edi + 0x4c]
test eax, eax
jne 0x43758b
mov eax, dword [0x4a12a4]
test eax, eax
jne 0x43759f
mov edx, dword [0x4a53a8]
push ebx
push 0xffffffffffffffff
push 0
push 0
push 0
push 0
push edx
push 0
call fcn.0043be60
mov ebp, eax
xor esi, esi
add esp, 0x20
cmp ebp, esi
je 0x4375b8
mov eax, dword [0x4a4c80]
mov dword [ebp + 0x50], eax
mov dword [edi + 0x4c], ebp
mov dword [edi + 0x50], ebp
mov eax, dword [ebp + 0x10]
cmp eax, esi
mov dword [ebp + 0x34], esi
mov dword [ebp + 0x38], 3
je 0x4374a0
push eax
call fcn.0040c170
add esp, 4
mov dword [ebp + 0x10], esi
mov eax, dword [edi + 0x10]
cmp eax, esi
je 0x4374da
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4374b0
sub eax, edx
inc eax
push eax
call fcn.0040c100
mov dword [ebp + 0x10], eax
mov ecx, dword [edi + 0x10]
add esp, 4
mov edx, eax
jmp 0x4374d0
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x4374d0
push str.VPITC
call dword [0x4781d4]
add esp, 4
cmp eax, esi
je 0x43752d
mov edi, eax
mov esi, str.WRAPPER
mov ecx, 8
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x43750a
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0xc]
or ecx, 2
jmp 0x437526
mov edi, eax
mov esi, str.NOWRAPPER
mov ecx, 0xa
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x437529
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0xc]
or ecx, 1
mov dword [eax + 0xc], ecx
mov edi, dword [esp + 0x10]
mov esi, dword [edi + 0x34]
test esi, esi
je 0x43757a
mov ecx, dword [esi + 0x10]
mov edx, dword [0x4a5390]
push ebx
push 0xffffffffffffffff
push 0
push 0
push 0
push ecx
push edx
push ebp
call fcn.0043be60
add esp, 0x20
test eax, eax
je 0x4375dd
push ebx
push 3
push eax
call fcn.004586e0
mov ecx, dword [ebx]
add esp, 0xc
cmp ecx, 0x35
je 0x437573
mov ecx, dword [eax + 0x14]
test ecx, ecx
jne 0x4375c8
mov esi, dword [esi + 0x30]
test esi, esi
jne 0x437534
mov eax, dword [esp + 0x24]
test eax, eax
jle 0x43758b
push edi
call fcn.00458e10
add esp, 4
mov edi, dword [edi + 0x58]
test edi, edi
mov dword [esp + 0x10], edi
jne 0x437431
jmp 0x437415
push edi
mov dword [ebx], 0xc
call fcn.0043d6e0
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
pop edi
pop esi
pop ebp
mov dword [ebx], 0x33
xor eax, eax
pop ebx
add esp, 8
ret
cmp dword [eax + 0x34], 3
jne 0x4375d7
push eax
call fcn.0043d4d0
add esp, 4
mov dword [ebx], 0xf
pop edi
pop esi
pop ebp
mov dword [0x4a3238], 1
xor eax, eax
pop ebx
add esp, 8
ret