Function at 0x42aaf7
Capabilities:
Query environment variable

Disassembly:
mov esi, dword [esp + 0x1c]
cmp dword [esp + 0x24], ebx
je 0x42ab9f
mov al, byte [edi + 0x17]
mov ebx, esi
mov dword [esp + 0x18], ebx
test al, al
jne 0x42a8ca
mov ecx, dword [edi + 0xc]
push 1
push 0
push esi
push 0
call fcn.004698a0
jmp 0x42a934
mov byte [esp + 0x17], 1
mov cl, 1
cmp esi, 0xffffffff
jne 0x42a8e0
xor cl, cl
xor ebx, ebx
mov dword [esp + 0x18], ebx
jmp 0x42a8e5
mov byte [esp + 0x17], 0
lea edi, [ebx + 1]
lea esi, [edi + edi]
cmp al, 2
jne 0x42a916
cmp byte [esp + 0x17], 0
je 0x42a904
push 0x4a5c64
mov eax, ebx
call fcn.00403c20
jmp 0x42a934
mov esi, 0x4c2fe4
call fcn.00403ca0
neg eax
sbb eax, eax
neg eax
jmp 0x42a934
mov edx, dword [0x4bd3c8]
cmp esi, edx
jbe 0x42a956
push 0x4a5c64
push str.Memory_limit_reached__see_MaxMem_in_the_help_file_.__The_current_thread_will_exit.
mov ecx, 0x4c3000
call fcn.0042b900
cmp eax, 1
jne 0x42aeb0
mov ecx, dword [ebp + 8]
mov ebx, 1
push ebx
call fcn.00401240
mov esi, eax
mov dword [esp + 0x18], esi
jmp 0x42abac
cmp edi, 2
jae 0x42a973
xor edx, edx
test cl, cl
mov ecx, dword [ebp + 8]
setne dl
xor al, al
add edx, 3
mov edi, edx
call fcn.00469d70
jmp 0x42a93d
mov ecx, dword [ebp + 8]
mov al, byte [ecx + 0x15]
test al, 2
je 0x42a995
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 [0x4bd3c8]
mov ecx, dword [ebp + 8]
mov edi, dword [ecx + 0x10]
and byte [ecx + 0x15], 0x86
cmp esi, edi
jbe 0x42a9c9
mov cl, byte [ecx + 0x14]
cmp cl, 1
jbe 0x42aa07
cmp cl, 2
je 0x42aa52
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 0x42ab8c
mov eax, dword [ecx + 8]
cmp eax, 0x4a5c64
je 0x42a9f3
lea ecx, [ebx + ebx]
push ecx
push 0x4a5c64
push eax
call fcn.004827f0
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 0x42a93d
cmp esi, 0x80
ja 0x42aa52
cmp esi, 8
ja 0x42aa1e
mov dword [esp + 0x10], 8
jmp 0x42aa31
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.00464590
mov dword [esp + 0x30], eax
test eax, eax
je 0x42aeb0
mov eax, dword [ebp + 8]
mov byte [eax + 0x14], 1
jmp 0x42a9b4
cmp esi, 0x20
jae 0x42aa61
mov esi, 0x20
jmp 0x42ab11
cmp esi, 0x208
jae 0x42aa73
mov esi, 0x208
jmp 0x42ab11
cmp esi, 0x50000
jae 0x42aab7
mov dword [esp + 0x28], esi
fild dword [esp + 0x28]
test esi, esi
jns 0x42aa8d
fadd qword [0x4b7850]
fmul qword [0x4b78a0]
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 0x42ab11
cmp esi, 0x320000
jae 0x42aac7
add esi, 0x8000
jmp 0x42ab11
cmp esi, 0xc80000
jae 0x42ab0b
mov dword [esp + 0x28], esi
fild dword [esp + 0x28]
test esi, esi
jns 0x42aae1
fadd qword [0x4b7850]
fmul qword [0x4b7898]
fnstcw word [esp + 0x10]
movzx eax, word [esp + 0x10]
or eax, 0xc00
mov dword [esp + 0x28], eax
and al, 0x28
and al, 0x28
fldcw word [esp + 0x28]
fistp qword [esp + 0x28]
mov esi, dword [esp + 0x28]
fldcw word [esp + 0x10]
jmp 0x42ab11
add esi, 0x20000
mov dword [esp + 0x10], esi
cmp esi, edx
jbe 0x42ab1d
mov dword [esp + 0x10], edx
cmp cl, 2
jne 0x42ab63
test edi, edi
je 0x42ab63
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 8]
push edx
mov bl, 1
call fcn.004833c5
mov byte [0x4c48300], al
mov eax, dword [esp + 0x10]
cmp eax, 0x7fffffff
ja 0x42ab67
push eax
call fcn.00481e64
add esp, 4
mov dword [esp + 0x30], eax
test eax, eax
je 0x42ab67
mov eax, dword [ebp + 8]
mov ebx, dword [esp + 0x18]
mov byte [eax + 0x14], 2
jmp 0x42a9b1
xor bl, bl
jmp 0x42ab37
test bl, bl
je 0x42ab7d
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [eax + 0x10], ecx
mov dword [eax + 8], 0x4c2f8c
mov dword [eax + 0xc], ecx
push 0x4a5c64
push str.Out_of_memory.__The_current_thread_will_exit.
jmp 0x42a92a
mov edx, dword [ecx + 8]
xor eax, eax
mov word [edx], ax
lea edx, [ebx + ebx]
mov dword [ecx + 0xc], edx
jmp 0x42a93d
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 [0x4bd3f0]
test ax, ax
je 0x42abf0
cmp ax, dx
je 0x42ac09
cmp ax, word [0x4bd3ec]
je 0x42ac09
test edi, edi
je 0x42abe0
mov word [esi], ax
add esi, 2
mov dword [esp + 0x18], esi
jmp 0x42abe4
add dword [esp + 0x1c], ebx
movzx eax, word [ecx + 2]
add ecx, 2
test ax, ax
jne 0x42abc2
add edi, ebx
mov dword [esp + 0x24], edi
cmp edi, 2
jge 0x42aebb
mov edi, dword [ebp + 8]
xor ebx, ebx
jmp 0x42a89e
movzx eax, word [ecx]
test ax, ax
je 0x42abf0
cmp ax, dx
jne 0x42ad21
test edi, edi
je 0x42ad0d
movzx eax, word [ecx + 2]
lea edx, [eax - 0x61]
cmp edx, 0x15
ja case.0x42ac39.99
movzx edx, byte [edx + 0x42af78]
jmp dword [edx*4 + 0x42af58]
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 0x42abb3
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 0x42abb3
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 0x42abb3
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 0x42abb3
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 0x42abb3
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 0x42abb3
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 0x42abb3
add dword [esp + 0x1c], ebx
add ecx, 2
add ecx, 2
mov ebx, 1
jmp 0x42abb3
lea edx, [ecx + 2]
mov ebx, edx
movzx eax, word [ebx]
test ax, ax
je 0x42aea3
cmp ax, word [0x4bd3ec]
je 0x42ad54
movzx eax, word [ebx + 2]
add ebx, 2
test ax, ax
jne 0x42ad32
add ecx, 2
mov ebx, 1
jmp 0x42abb3
cmp word [ebx], 0
je 0x42aea3
mov edi, ebx
sub edi, ecx
sar edi, 1
dec edi
je 0x42ae99
cmp edi, 0xfd
ja 0x42ae99
push edi
push edx
lea ecx, [esp + 0x60]
push ecx
call fcn.00485434
xor edx, edx
add esp, 0xc
mov word [esp + edi*2 + 0x58], dx
cmp word [esp + 0x58], dx
je 0x42add6
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, 0x4c3000
call fcn.0041e310
test eax, eax
jne 0x42add0
movzx eax, byte [esp + 0x23]
mov ecx, dword [esp + 0x34]
push eax
push ecx
push edi
lea edx, [esp + 0x64]
push edx
mov ecx, 0x4c3000
call fcn.0041e680
mov esi, eax
test esi, esi
jne 0x42addc
lea esi, [esp + 0x3c]
jmp 0x42ade5
cmp byte [esi + 0x17], 0
jne 0x42ade5
mov esi, dword [esi + 0xc]
cmp esi, dword [ebp + 8]
je 0x42ae99
cmp dword [esp + 0x24], 0
je 0x42ae0d
mov edi, dword [esp + 0x18]
push edi
mov ecx, esi
call fcn.00469be0
lea eax, [edi + eax*2]
mov dword [esp + 0x18], eax
jmp 0x42ae99
movzx eax, byte [esi + 0x17]
cmp eax, 3
ja case.default.0x42ae16
jmp dword [eax*4 + 0x42af90]
mov eax, esi
call fcn.00401160
cmp dword [0x4c0e70], 0
jne 0x42ae5f
cmp dword [esi + 0xc], 0
jne 0x42ae5f
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 0x42ae55
mov dword [0x4c449c], 0
dec eax
jmp 0x42ae95
mov dword [0x4c449c], esi
xor eax, eax
jmp 0x42ae95
mov eax, dword [esi + 0xc]
shr eax, 1
jmp 0x42ae95
mov ecx, dword [esi + 0xc]
push 0
call fcn.00469be0
jmp 0x42ae95
push 0
mov ecx, 0x4c2fe4
call fcn.00403a60
cmp eax, 0xffffffff
jne 0x42ae95
xor eax, eax
jmp 0x42ae95
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 0x42abb3
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 ebx
mov word [esi], dx
call fcn.00401240
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42aed0
sub eax, edx
sar eax, 1
mov edi, eax
mov eax, dword [ebp + 8]
mov ebx, eax
cmp byte [eax + 0x17], cl
jne 0x42aef0
mov esi, dword [ebx + 0xc]
jmp 0x42aef3
mov esi, dword [ebp + 8]
cmp byte [esi + 0x17], 1
jne 0x42af0b
test byte [esi + 0x15], 8
je 0x42af06
mov eax, esi
call fcn.00401160
lea eax, [esi + 0xc]
jmp 0x42af10
mov eax, 0x4c3c54
lea ecx, [edi + edi]
mov dword [eax], ecx
cmp byte [ebx + 0x17], 0
jne 0x42af20
mov eax, dword [ebx + 0xc]
jmp 0x42af22
mov eax, ebx
cmp byte [eax + 0x17], 2
jne 0x42af44
cmp dword [0x4c2ff0], 0
je 0x42af44
mov ecx, 0x4c2fe4
call fcn.00403d20
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