Function at 0x42e3e0
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x134
push ebx
push ebp
mov ebp, dword [esp + 0x140]
cmp byte [ebp + 0x17], 0
push esi
push edi
jne 0x42e401
mov ebp, dword [ebp + 0xc]
mov dword [esp + 0x148], ebp
xor ebx, ebx
mov dword [esp + 0x30], ebx
mov edx, dword [esp + 0x1c]
test ebx, ebx
je 0x42e6f8
mov al, byte [ebp + 0x17]
mov dword [esp + 0x2c], edx
test al, al
jne 0x42e44a
mov eax, dword [ebp + 0xc]
push 1
push 0
push edx
push 0
push eax
call fcn.00477500
cmp eax, 1
jne 0x42eac3
push 0
push eax
mov ecx, ebp
call fcn.00401210
mov dword [esp + 0x14], eax
jmp 0x42e700
cmp dword [esp + 0x1c], 0xffffffff
mov byte [esp + 0x1b], 1
mov cl, 1
jne 0x42e468
mov dword [esp + 0x2c], 0
mov edx, dword [esp + 0x2c]
xor cl, cl
jmp 0x42e46d
mov byte [esp + 0x1b], 0
lea edi, [edx + 1]
cmp al, 2
jne 0x42e49b
cmp byte [esp + 0x1b], 0
je 0x42e489
push 0x49b8bd
mov eax, edx
call fcn.00404700
jmp 0x42e42e
mov esi, 0x4ae28c
call fcn.00404780
neg eax
sbb eax, eax
neg eax
jmp 0x42e42e
mov esi, dword [0x4a98f4]
cmp edi, esi
jbe 0x42e4c3
cmp edi, dword [ebp + 0x10]
jbe 0x42e4c3
push 0x49b8bd
push 0x4a2d8c
mov ecx, 0x4ae2a8
call fcn.0042fa70
jmp 0x42e42e
cmp edi, 2
jae 0x42e4f0
xor edx, edx
test cl, cl
setne dl
xor al, al
mov ecx, ebp
add edx, 3
push edx
call fcn.00477ab0
push 0
push 1
mov ecx, ebp
call fcn.00401210
mov dword [esp + 0x14], eax
jmp 0x42e700
mov al, byte [ebp + 0x15]
test al, 2
je 0x42e50d
and al, 0x3d
mov byte [ebp + 0x15], al
mov eax, dword [ebp]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov esi, dword [0x4a98f4]
mov ebx, dword [ebp + 0x10]
and byte [ebp + 0x15], 0x82
cmp edi, ebx
jbe 0x42e53b
mov cl, byte [ebp + 0x14]
cmp cl, 1
jbe 0x42e58b
cmp cl, 2
je 0x42e5ca
mov edi, dword [esp + 0x20]
mov eax, dword [esp + 0x38]
and byte [ebp + 0x15], 0x7f
mov dword [ebp + 8], eax
mov dword [ebp + 0x10], edi
cmp byte [esp + 0x1b], 0
je 0x42e6d6
mov eax, dword [ebp + 8]
cmp eax, 0x49b8bd
je 0x42e563
mov ecx, dword [esp + 0x2c]
push ecx
push 0x49b8bd
push eax
call fcn.00488360
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [esp + 0x2c]
mov ebx, dword [esp + 0x30]
mov byte [eax + edx], 0
push 0
mov edx, eax
push 1
mov ecx, ebp
mov dword [ebp + 0xc], edx
call fcn.00401210
mov dword [esp + 0x14], eax
jmp 0x42e700
cmp edi, 0x40
ja 0x42e5ca
cmp edi, 4
ja 0x42e59c
mov edi, 4
jmp 0x42e5aa
mov eax, 8
cmp eax, edi
sbb edi, edi
and edi, 0x38
add edi, eax
mov eax, edi
mov dword [esp + 0x20], edi
call fcn.004719a0
mov dword [esp + 0x38], eax
test eax, eax
je 0x42eac3
mov byte [ebp + 0x14], 1
jmp 0x42e52d
cmp edi, 0x10
jae 0x42e5d6
mov edx, 0x10
jmp 0x42e655
cmp edi, 0x104
jae 0x42e5e5
mov edx, 0x104
jmp 0x42e655
cmp edi, 0x28000
jae 0x42e629
mov dword [esp + 0x20], edi
fild dword [esp + 0x20]
test edi, edi
jns 0x42e5ff
fadd qword [0x4a3e78]
fmul qword [0x4a3e80]
fnstcw word [esp + 0x14]
movzx eax, word [esp + 0x14]
or eax, 0xc00
mov dword [esp + 0x20], eax
fldcw word [esp + 0x20]
fistp qword [esp + 0x20]
mov edx, dword [esp + 0x20]
fldcw word [esp + 0x14]
jmp 0x42e655
cmp edi, 0x190000
jae 0x42e639
lea edx, [edi + 0x4000]
jmp 0x42e655
cmp edi, 0x640000
jae 0x42e64f
mov eax, 0x51eb851f
mul edi
shr edx, 5
add edx, edi
jmp 0x42e655
lea edx, [edi + 0x10000]
mov dword [esp + 0x20], edx
cmp edx, esi
jbe 0x42e661
mov dword [esp + 0x20], esi
cmp cl, 2
jne 0x42e69c
test ebx, ebx
je 0x42e69c
mov ecx, dword [ebp + 8]
push ecx
mov bl, 1
call fcn.00487798
add esp, 4
mov eax, dword [esp + 0x20]
xor edi, edi
cmp eax, edi
jl 0x42e6a0
push eax
call fcn.00487b57
add esp, 4
mov dword [esp + 0x38], eax
cmp eax, edi
je 0x42e6a0
mov byte [ebp + 0x14], 2
jmp 0x42e529
xor bl, bl
jmp 0x42e678
test bl, bl
je 0x42e6b0
mov dword [ebp + 0x10], edi
mov dword [ebp + 8], 0x4ae261
jmp 0x42e6b6
mov edx, dword [ebp + 8]
mov byte [edx], 0
push 0x49b8bd
push str.Out_of_memory.
mov ecx, 0x4ae2a8
mov dword [ebp + 0xc], edi
call fcn.0042fa70
mov ebx, dword [esp + 0x30]
jmp 0x42e42e
mov ecx, dword [ebp + 8]
mov edx, dword [esp + 0x2c]
mov ebx, dword [esp + 0x30]
mov byte [ecx], 0
push 0
push 1
mov ecx, ebp
mov dword [ebp + 0xc], edx
call fcn.00401210
mov dword [esp + 0x14], eax
jmp 0x42e700
mov dword [esp + 0x1c], 0
mov ecx, dword [esp + 0x14c]
mov al, byte [ecx]
test al, al
je 0x42e73d
lea ecx, [ecx]
cmp al, byte [0x4a98e3]
je 0x42e77c
cmp al, byte [0x4a98e2]
je 0x42e77c
test ebx, ebx
je 0x42e731
mov edx, dword [esp + 0x14]
mov byte [edx], al
inc edx
mov dword [esp + 0x14], edx
jmp 0x42e735
inc dword [esp + 0x1c]
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x42e710
inc ebx
mov dword [esp + 0x30], ebx
cmp ebx, 2
jl 0x42e407
mov ecx, dword [esp + 0x14]
push 0
mov byte [ecx], 0
push 1
mov ecx, ebp
call fcn.00401210
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x42e760
sub eax, edx
mov edi, eax
cmp byte [ebp + 0x17], cl
jne 0x42ead2
mov esi, dword [ebp + 0xc]
jmp 0x42ead4
mov al, byte [ecx]
test al, al
je 0x42e73d
cmp al, byte [0x4a98e3]
jne 0x42e8b3
test ebx, ebx
je 0x42e89d
mov al, byte [ecx + 1]
movsx edx, al
add edx, 0xffffff9f
cmp edx, 0x15
ja case.0x42e7af.99
movzx edx, byte [edx + 0x42eb60]
jmp dword [edx*4 + 0x42eb40]
mov eax, dword [esp + 0x14]
inc dword [esp + 0x14]
mov ebx, dword [esp + 0x30]
mov ebp, dword [esp + 0x148]
inc ecx
mov byte [eax], 7
inc ecx
jmp 0x42e707
mov edx, dword [esp + 0x14]
inc dword [esp + 0x14]
mov ebx, dword [esp + 0x30]
mov ebp, dword [esp + 0x148]
inc ecx
mov byte [edx], 8
inc ecx
jmp 0x42e707
mov eax, dword [esp + 0x14]
inc dword [esp + 0x14]
mov ebx, dword [esp + 0x30]
mov ebp, dword [esp + 0x148]
inc ecx
mov byte [eax], 0xc
inc ecx
jmp 0x42e707
mov edx, dword [esp + 0x14]
inc dword [esp + 0x14]
mov ebx, dword [esp + 0x30]
mov ebp, dword [esp + 0x148]
inc ecx
mov byte [edx], 0xa
inc ecx
jmp 0x42e707
mov eax, dword [esp + 0x14]
inc dword [esp + 0x14]
mov ebx, dword [esp + 0x30]
mov ebp, dword [esp + 0x148]
inc ecx
mov byte [eax], 0xd
inc ecx
jmp 0x42e707
mov edx, dword [esp + 0x14]
inc dword [esp + 0x14]
mov ebx, dword [esp + 0x30]
mov ebp, dword [esp + 0x148]
inc ecx
mov byte [edx], 9
inc ecx
jmp 0x42e707
mov eax, dword [esp + 0x14]
inc dword [esp + 0x14]
mov ebx, dword [esp + 0x30]
mov ebp, dword [esp + 0x148]
inc ecx
mov byte [eax], 0xb
inc ecx
jmp 0x42e707
mov edx, dword [esp + 0x14]
inc dword [esp + 0x14]
mov ebx, dword [esp + 0x30]
mov ebp, dword [esp + 0x148]
inc ecx
mov byte [edx], al
inc ecx
jmp 0x42e707
inc dword [esp + 0x1c]
mov ebx, dword [esp + 0x30]
mov ebp, dword [esp + 0x148]
inc ecx
inc ecx
jmp 0x42e707
lea esi, [ecx + 1]
mov ebp, esi
mov al, byte [ebp]
test al, al
je 0x42eab2
mov dl, byte [0x4a98e2]
lea esp, [esp]
cmp al, dl
je 0x42e8ed
mov al, byte [ebp + 1]
inc ebp
test al, al
jne 0x42e8d0
mov ebx, dword [esp + 0x30]
mov ebp, dword [esp + 0x148]
inc ecx
jmp 0x42e707
cmp byte [ebp], 0
je 0x42eab2
mov edi, ebp
sub edi, ecx
dec edi
je 0x42eab0
cmp edi, 0xfd
ja 0x42eab0
push edi
lea eax, [esp + 0x44]
push esi
push eax
call fcn.0048a440
add esp, 0xc
mov byte [esp + edi + 0x40], 0
cmp byte [esp + 0x40], 0
je 0x42eac3
lea ecx, [esp + 0x2b]
push ecx
push 3
lea edx, [esp + 0x44]
push edx
push edi
lea eax, [esp + 0x50]
push eax
mov ecx, 0x4ae2a8
call fcn.00422bd0
test eax, eax
jne 0x42e96d
mov edx, dword [esp + 0x3c]
xor ecx, ecx
cmp byte [esp + 0x2b], cl
setne cl
inc ecx
push ecx
push edx
push 0x4ae2a8
mov ecx, edi
lea edx, [esp + 0x4c]
call fcn.00422e70
mov esi, eax
test esi, esi
je 0x42eac3
cmp byte [esi + 0x17], 0
jne 0x42e980
mov esi, dword [esi + 0xc]
cmp esi, dword [esp + 0x148]
je 0x42eab0
cmp dword [esp + 0x30], 0
je 0x42e9b9
mov edi, dword [esp + 0x14]
push edi
mov ecx, esi
call fcn.004778d0
mov ebx, dword [esp + 0x30]
add edi, eax
mov ecx, ebp
mov ebp, dword [esp + 0x148]
mov dword [esp + 0x14], edi
inc ecx
jmp 0x42e707
movzx eax, byte [esi + 0x17]
cmp eax, 3
ja case.default.0x42e9c6
jmp dword [eax*4 + 0x42eb78]
mov eax, esi
call fcn.00401150
cmp dword [0x4ad458], 0
jne 0x42ea39
cmp dword [esi + 0xc], 0
jne 0x42ea39
mov ecx, dword [esi + 0x18]
push 0
lea eax, [esp + 0x3b]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x42ea1a
mov ebx, dword [esp + 0x30]
dec eax
add dword [esp + 0x1c], eax
mov ecx, ebp
mov ebp, dword [esp + 0x148]
mov dword [0x4af30c], 0
inc ecx
jmp 0x42e707
mov dword [0x4af30c], esi
mov ebx, dword [esp + 0x30]
xor eax, eax
add dword [esp + 0x1c], eax
mov ecx, ebp
mov ebp, dword [esp + 0x148]
inc ecx
jmp 0x42e707
mov eax, dword [esi + 0xc]
add dword [esp + 0x1c], eax
mov ebx, dword [esp + 0x30]
mov ecx, ebp
mov ebp, dword [esp + 0x148]
inc ecx
jmp 0x42e707
mov ecx, dword [esi + 0xc]
push 0
call fcn.004778d0
add dword [esp + 0x1c], eax
mov ebx, dword [esp + 0x30]
mov ecx, ebp
mov ebp, dword [esp + 0x148]
inc ecx
jmp 0x42e707
push 0
mov ecx, 0x4ae28c
call fcn.00404540
cmp eax, 0xffffffff
jne 0x42eaac
mov ebx, dword [esp + 0x30]
xor eax, eax
add dword [esp + 0x1c], eax
mov ecx, ebp
mov ebp, dword [esp + 0x148]
inc ecx
jmp 0x42e707
mov edx, dword [esi + 0x18]
mov eax, dword [esi + 0x10]
push edx
push 0
call eax
add esp, 8
add dword [esp + 0x1c], eax
mov ecx, ebp
mov ebx, dword [esp + 0x30]
mov ebp, dword [esp + 0x148]
inc ecx
jmp 0x42e707
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x134
ret 8
mov esi, ebp
cmp byte [esi + 0x17], 1
jne 0x42eaec
test byte [esi + 0x15], 8
je 0x42eae7
mov eax, esi
call fcn.00401150
lea eax, [esi + 0xc]
jmp 0x42eaf1
mov eax, 0x4aeabc
mov dword [eax], edi
cmp byte [ebp + 0x17], 0
jne 0x42eafe
mov eax, dword [ebp + 0xc]
jmp 0x42eb00
mov eax, ebp
cmp byte [eax + 0x17], 2
jne 0x42eb28
cmp dword [0x4ae298], 0
je 0x42eb28
push 1
mov ecx, 0x4ae28c
call fcn.004047f0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x134
ret 8
and byte [eax + 0x15], 0x86
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x134
ret 8