Function at 0x42c5f0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24c
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
cmp byte [edi + 0x17], 0
jne 0x42c60e
mov edi, dword [edi + 0xc]
mov dword [ebp + 8], edi
push 0x1fa
xor ebx, ebx
lea ecx, [esp + 0x5e]
xor eax, eax
push ebx
push ecx
mov word [esp + 0x64], ax
call fcn.00490160
lea edx, [esp + 0x64]
add esp, 0xc
mov dword [esp + 0x44], 0x4c30f4
mov dword [esp + 0x48], ebx
mov dword [esp + 0x54], edx
mov dword [esp + 0x50], 0x1000400
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x24], ebx
mov esi, dword [esp + 0x1c]
cmp dword [esp + 0x24], ebx
je 0x42c950
mov al, byte [edi + 0x17]
mov ebx, esi
mov dword [esp + 0x18], ebx
test al, al
jne 0x42c67a
mov ecx, dword [edi + 0xc]
push 1
push 0
push esi
push 0
call fcn.0046dd60
jmp 0x42c6e4
mov byte [esp + 0x17], 1
mov cl, 1
cmp esi, 0xffffffff
jne 0x42c690
xor cl, cl
xor ebx, ebx
mov dword [esp + 0x18], ebx
jmp 0x42c695
mov byte [esp + 0x17], 0
lea edi, [ebx + 1]
lea esi, [edi + edi]
cmp al, 2
jne 0x42c6c6
cmp byte [esp + 0x17], 0
je 0x42c6b4
push 0x4a596c
mov eax, ebx
call fcn.00403c50
jmp 0x42c6e4
mov esi, 0x4c314c
call fcn.00403cd0
neg eax
sbb eax, eax
neg eax
jmp 0x42c6e4
mov edx, dword [0x4bd3ec]
cmp esi, edx
jbe 0x42c708
push 0x4a596c
push str.Memory_limit_reached__see_MaxMem_in_the_help_file_.__The_current_thread_will_exit.
mov ecx, 0x4c3168
call fcn.0042d6d0
cmp eax, 1
jne 0x42cc6a
mov ecx, dword [ebp + 8]
push 0
mov ebx, 1
push ebx
call fcn.00401240
mov esi, eax
mov dword [esp + 0x18], esi
jmp 0x42c95d
cmp edi, 2
jae 0x42c724
xor eax, eax
test cl, cl
mov ecx, dword [ebp + 8]
setne al
add eax, 3
push eax
xor al, al
call fcn.0046e290
jmp 0x42c6ed
mov ecx, dword [ebp + 8]
mov al, byte [ecx + 0x15]
test al, 2
je 0x42c746
and al, 0x3d
mov byte [ecx + 0x15], al
mov eax, dword [ecx]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov edx, dword [0x4bd3ec]
mov ecx, dword [ebp + 8]
mov edi, dword [ecx + 0x10]
and byte [ecx + 0x15], 0x82
cmp esi, edi
jbe 0x42c77a
mov cl, byte [ecx + 0x14]
cmp cl, 1
jbe 0x42c7b8
cmp cl, 2
je 0x42c803
mov eax, dword [ebp + 8]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x10]
and byte [eax + 0x15], 0x7f
mov dword [eax + 8], ecx
mov ecx, dword [ebp + 8]
mov dword [eax + 0x10], edx
cmp byte [esp + 0x17], 0
je 0x42c93d
mov eax, dword [ecx + 8]
cmp eax, 0x4a596c
je 0x42c7a4
lea ecx, [ebx + ebx]
push ecx
push 0x4a596c
push eax
call fcn.00486da0
mov ecx, dword [ebp + 8]
add esp, 0xc
mov edx, dword [ecx + 8]
xor eax, eax
mov word [edx + ebx*2], ax
lea edx, [ebx + ebx]
mov dword [ecx + 0xc], edx
jmp 0x42c6ed
cmp esi, 0x80
ja 0x42c803
cmp esi, 8
ja 0x42c7cf
mov dword [esp + 0x10], 8
jmp 0x42c7e2
mov eax, 0x10
cmp eax, esi
sbb eax, eax
and eax, 0x70
add eax, 0x10
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
call fcn.00468610
mov dword [esp + 0x30], eax
test eax, eax
je 0x42cc6a
mov eax, dword [ebp + 8]
mov byte [eax + 0x14], 1
jmp 0x42c765
cmp esi, 0x20
jae 0x42c812
mov esi, 0x20
jmp 0x42c8c2
cmp esi, 0x208
jae 0x42c824
mov esi, 0x208
jmp 0x42c8c2
cmp esi, 0x50000
jae 0x42c868
mov dword [esp + 0x28], esi
fild dword [esp + 0x28]
test esi, esi
jns 0x42c83e
fadd qword [0x4b7668]
fmul qword [0x4b76b8]
fnstcw word [esp + 0x10]
movzx eax, word [esp + 0x10]
or eax, 0xc00
mov dword [esp + 0x28], eax
fldcw word [esp + 0x28]
fistp qword [esp + 0x28]
mov esi, dword [esp + 0x28]
fldcw word [esp + 0x10]
jmp 0x42c8c2
cmp esi, 0x320000
jae 0x42c878
add esi, 0x8000
jmp 0x42c8c2
cmp esi, 0xc80000
jae 0x42c8bc
mov dword [esp + 0x28], esi
fild dword [esp + 0x28]
test esi, esi
jns 0x42c892
fadd qword [0x4b7668]
fmul qword [0x4b76b0]
fnstcw word [esp + 0x10]
movzx eax, word [esp + 0x10]
or eax, 0xc00
mov dword [esp + 0x28], eax
fldcw word [esp + 0x28]
fistp qword [esp + 0x28]
mov esi, dword [esp + 0x28]
fldcw word [esp + 0x10]
jmp 0x42c8c2
add esi, 0x20000
mov dword [esp + 0x10], esi
cmp esi, edx
jbe 0x42c8ce
mov dword [esp + 0x10], edx
cmp cl, 2
jne 0x42c914
test edi, edi
je 0x42c914
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 8]
push edx
mov bl, 1
call fcn.00487975
add esp, 4
mov eax, dword [esp + 0x10]
cmp eax, 0x7fffffff
ja 0x42c918
push eax
call fcn.004863c4
add esp, 4
mov dword [esp + 0x30], eax
test eax, eax
je 0x42c918
mov eax, dword [ebp + 8]
mov ebx, dword [esp + 0x18]
mov byte [eax + 0x14], 2
jmp 0x42c762
xor bl, bl
jmp 0x42c8e8
test bl, bl
je 0x42c92e
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [eax + 0x10], ecx
mov dword [eax + 8], 0x4c30f4
mov dword [eax + 0xc], ecx
push 0x4a596c
push str.Out_of_memory.__The_current_thread_will_exit.
jmp 0x42c6da
mov edx, dword [ecx + 8]
xor eax, eax
mov word [edx], ax
lea edx, [ebx + ebx]
mov dword [ecx + 0xc], edx
jmp 0x42c6ed
mov esi, dword [esp + 0x18]
mov dword [esp + 0x1c], ebx
mov ebx, 1
mov ecx, dword [ebp + 0xc]
mov edi, dword [esp + 0x24]
movzx eax, word [ecx]
mov dx, word [0x4bd414]
test ax, ax
je 0x42c9a1
cmp ax, dx
je 0x42c9ba
cmp ax, word [0x4bd410]
je 0x42c9ba
test edi, edi
je 0x42c991
mov word [esi], ax
add esi, 2
mov dword [esp + 0x18], esi
jmp 0x42c995
add dword [esp + 0x1c], ebx
movzx eax, word [ecx + 2]
add ecx, 2
test ax, ax
jne 0x42c973
add edi, ebx
mov dword [esp + 0x24], edi
cmp edi, 2
jge 0x42cc75
mov edi, dword [ebp + 8]
xor ebx, ebx
jmp 0x42c64e
movzx eax, word [ecx]
test ax, ax
je 0x42c9a1
cmp ax, dx
jne 0x42cad2
test edi, edi
je 0x42cabe
movzx eax, word [ecx + 2]
lea edx, [eax - 0x61]
cmp edx, 0x15
ja case.0x42c9ea.99
movzx edx, byte [edx + 0x42cd30]
jmp dword [edx*4 + 0x42cd10]
mov eax, 7
mov word [esi], ax
add esi, 2
add ecx, 2
mov dword [esp + 0x18], esi
add ecx, 2
lea ebx, [eax - 6]
jmp 0x42c964
mov edx, 8
mov word [esi], dx
add esi, 2
add ecx, 2
mov dword [esp + 0x18], esi
add ecx, 2
lea ebx, [edx - 7]
jmp 0x42c964
mov eax, 0xc
mov word [esi], ax
add esi, 2
add ecx, 2
mov dword [esp + 0x18], esi
add ecx, 2
lea ebx, [eax - 0xb]
jmp 0x42c964
mov edx, 0xa
mov word [esi], dx
add esi, 2
add ecx, 2
mov dword [esp + 0x18], esi
add ecx, 2
lea ebx, [edx - 9]
jmp 0x42c964
mov eax, 0xd
mov word [esi], ax
add esi, 2
add ecx, 2
mov dword [esp + 0x18], esi
add ecx, 2
lea ebx, [eax - 0xc]
jmp 0x42c964
mov edx, 9
mov word [esi], dx
add esi, 2
add ecx, 2
mov dword [esp + 0x18], esi
add ecx, 2
lea ebx, [edx - 8]
jmp 0x42c964
mov eax, 0xb
mov word [esi], ax
add esi, 2
add ecx, 2
mov dword [esp + 0x18], esi
add ecx, 2
mov ebx, 1
jmp 0x42c964
add dword [esp + 0x1c], ebx
add ecx, 2
add ecx, 2
mov ebx, 1
jmp 0x42c964
lea edx, [ecx + 2]
mov ebx, edx
movzx eax, word [ebx]
test ax, ax
je 0x42cc5d
cmp ax, word [0x4bd410]
je 0x42cb05
movzx eax, word [ebx + 2]
add ebx, 2
test ax, ax
jne 0x42cae3
add ecx, 2
mov ebx, 1
jmp 0x42c964
cmp word [ebx], 0
je 0x42cc5d
mov edi, ebx
sub edi, ecx
sar edi, 1
dec edi
je 0x42cc53
cmp edi, 0xfd
ja 0x42cc53
push edi
push edx
lea ecx, [esp + 0x60]
push ecx
call fcn.00488d24
xor edx, edx
add esp, 0xc
mov word [esp + edi*2 + 0x58], dx
cmp word [esp + 0x58], dx
je 0x42cb89
lea eax, [esp + 0x23]
push eax
push edx
push 3
lea ecx, [esp + 0x40]
push ecx
push edi
lea edx, [esp + 0x6c]
push edx
mov ecx, 0x4c3168
call fcn.0041fbb0
test eax, eax
jne 0x42cb83
cmp byte [esp + 0x23], al
mov ecx, dword [esp + 0x34]
setne al
lea edx, [esp + 0x58]
push eax
push ecx
push edi
push edx
mov ecx, 0x4c3168
call fcn.0041ff20
mov esi, eax
test esi, esi
jne 0x42cb8f
lea esi, [esp + 0x3c]
jmp 0x42cb98
cmp byte [esi + 0x17], 0
jne 0x42cb98
mov esi, dword [esi + 0xc]
cmp esi, dword [ebp + 8]
je 0x42cc53
cmp dword [esp + 0x24], 0
je 0x42cbc0
mov edi, dword [esp + 0x18]
push edi
mov ecx, esi
call fcn.0046e0a0
lea eax, [edi + eax*2]
mov dword [esp + 0x18], eax
jmp 0x42cc53
movzx eax, byte [esi + 0x17]
cmp eax, 3
ja case.default.0x42cbc9
jmp dword [eax*4 + 0x42cd48]
mov eax, esi
call fcn.00401160
cmp dword [0x4c0fd8], 0
jne 0x42cc12
cmp dword [esi + 0xc], 0
jne 0x42cc12
mov edx, dword [esi + 0x18]
push 0
lea ecx, [esp + 0x3c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x42cc08
mov dword [0x4c481c], 0
dec eax
jmp 0x42cc4f
mov dword [0x4c481c], esi
xor eax, eax
jmp 0x42cc4f
mov eax, dword [esi + 0xc]
shr eax, 1
jmp 0x42cc4f
mov ecx, dword [esi + 0xc]
push 0
call fcn.0046e0a0
jmp 0x42cc4f
push 0
mov ecx, 0x4c314c
call fcn.00403a90
cmp eax, 0xffffffff
jne 0x42cc4f
xor eax, eax
jmp 0x42cc4f
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x10]
push eax
push 0
call ecx
add esp, 8
add dword [esp + 0x1c], eax
mov edi, dword [esp + 0x24]
mov esi, dword [esp + 0x18]
mov ecx, ebx
add ecx, 2
mov ebx, 1
jmp 0x42c964
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp + 8]
xor edx, edx
push edx
push ebx
mov word [esi], dx
call fcn.00401240
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42cc87
sub eax, edx
sar eax, 1
mov edi, eax
mov eax, dword [ebp + 8]
mov ebx, eax
cmp byte [eax + 0x17], cl
jne 0x42cca7
mov esi, dword [ebx + 0xc]
jmp 0x42ccaa
mov esi, dword [ebp + 8]
cmp byte [esi + 0x17], 1
jne 0x42ccc2
test byte [esi + 0x15], 8
je 0x42ccbd
mov eax, esi
call fcn.00401160
lea eax, [esi + 0xc]
jmp 0x42ccc7
mov eax, 0x4c3fd4
lea ecx, [edi + edi]
mov dword [eax], ecx
cmp byte [ebx + 0x17], 0
jne 0x42ccd7
mov eax, dword [ebx + 0xc]
jmp 0x42ccd9
mov eax, ebx
cmp byte [eax + 0x17], 2
jne 0x42ccfb
cmp dword [0x4c3158], 0
je 0x42ccfb
mov ecx, 0x4c314c
call fcn.00403d50
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
and byte [eax + 0x15], 0x86
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 8