Function at 0x42f2f0
Capabilities:
Query environment variable

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x234
cmp byte [ecx + 0x17], 0
push ebx
push ebp
push esi
push edi
jne 0x42f30e
mov ecx, dword [ecx + 0xc]
mov dword [esp + 0x248], ecx
mov ebp, dword [esp + 0x2c]
mov si, word [0x4c696c]
mov dword [esp + 0x24], 0
cmp dword [esp + 0x24], 0
mov edx, dword [esp + 0x1c]
je 0x42f651
mov al, byte [ecx + 0x17]
mov ebp, edx
test al, al
jne 0x42f34b
mov eax, dword [ecx + 0xc]
push 1
push 0
push edx
push 0
push eax
call fcn.00479730
jmp 0x42f3bd
mov byte [esp + 0x1b], 1
mov cl, 1
cmp edx, 0xffffffff
jne 0x42f35d
xor cl, cl
xor ebp, ebp
jmp 0x42f362
mov byte [esp + 0x1b], 0
lea edi, [ebp + 1]
lea esi, [edi + edi]
cmp al, 2
jne 0x42f393
cmp byte [esp + 0x1b], 0
je 0x42f381
push 0x4a3890
mov eax, ebp
call fcn.004045e0
jmp 0x42f3bd
mov esi, 0x4cc048
call fcn.00404660
neg eax
sbb eax, eax
neg eax
jmp 0x42f3bd
mov ebx, dword [0x4c6954]
mov edx, dword [esp + 0x248]
cmp esi, ebx
jbe 0x42f3e8
cmp esi, dword [edx + 0x10]
jbe 0x42f3e8
push 0x4a3890
push 0x4bf1d8
mov ecx, 0x4cb508
call fcn.00430980
cmp eax, 1
jne 0x42f94f
mov ecx, dword [esp + 0x248]
push 0
mov ebx, 1
push ebx
call fcn.00401220
mov si, word [0x4c696c]
mov ebp, eax
jmp 0x42f65e
cmp edi, 2
jae 0x42f408
xor edx, edx
test cl, cl
mov ecx, dword [esp + 0x248]
setne dl
xor al, al
add edx, 3
push edx
call fcn.00479cf0
jmp 0x42f3c6
mov al, byte [edx + 0x15]
test al, 2
je 0x42f432
mov ecx, dword [esp + 0x248]
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 ebx, dword [0x4c6954]
mov edx, dword [esp + 0x248]
mov edi, dword [edx + 0x10]
and byte [edx + 0x15], 0x82
cmp esi, edi
jbe 0x42f46e
mov cl, byte [edx + 0x14]
cmp cl, 1
jbe 0x42f4b2
cmp cl, 2
je 0x42f501
mov eax, dword [esp + 0x248]
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x14]
and byte [eax + 0x15], 0x7f
mov dword [eax + 8], edx
mov edx, dword [esp + 0x248]
mov dword [eax + 0x10], ecx
cmp byte [esp + 0x1b], 0
mov eax, dword [edx + 8]
je 0x42f640
cmp eax, 0x4a3890
je 0x42f49d
lea edx, [ebp + ebp]
push edx
push 0x4a3890
push eax
call fcn.00490a30
mov edx, dword [esp + 0x254]
add esp, 0xc
mov eax, dword [edx + 8]
xor ecx, ecx
mov word [eax + ebp*2], cx
lea eax, [ebp + ebp]
mov dword [edx + 0xc], eax
jmp 0x42f3c6
cmp esi, 0x80
ja 0x42f501
cmp esi, 8
ja 0x42f4c9
mov dword [esp + 0x14], 8
jmp 0x42f4dc
mov eax, 0x10
cmp eax, esi
sbb eax, eax
and eax, 0x70
add eax, 0x10
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
call fcn.00473a50
mov dword [esp + 0x28], eax
test eax, eax
je 0x42f94f
mov eax, dword [esp + 0x248]
mov byte [eax + 0x14], 1
jmp 0x42f455
cmp esi, 0x20
jae 0x42f513
mov dword [esp + 0x14], 0x20
jmp 0x42f5a1
cmp esi, 0x208
jae 0x42f525
mov dword [esp + 0x14], 0x208
jmp 0x42f5a1
cmp esi, 0x50000
jae 0x42f56d
mov dword [esp + 0x30], esi
fild dword [esp + 0x30]
test esi, esi
jns 0x42f53f
fadd qword [0x4c0df8]
fmul qword [0x4c0e30]
fnstcw word [esp + 0x14]
movzx eax, word [esp + 0x14]
or eax, 0xc00
mov dword [esp + 0x30], eax
fldcw word [esp + 0x30]
fistp qword [esp + 0x30]
mov edx, dword [esp + 0x30]
fldcw word [esp + 0x14]
mov dword [esp + 0x14], edx
jmp 0x42f5a1
cmp esi, 0x320000
jae 0x42f57d
add esi, 0x8000
jmp 0x42f59d
cmp esi, 0xc80000
jae 0x42f597
mov eax, 0x51eb851f
mul esi
shr edx, 5
add edx, esi
mov dword [esp + 0x14], edx
jmp 0x42f5a1
add esi, 0x20000
mov dword [esp + 0x14], esi
cmp dword [esp + 0x14], ebx
jbe 0x42f5ab
mov dword [esp + 0x14], ebx
cmp cl, 2
jne 0x42f5f5
test edi, edi
je 0x42f5f5
mov eax, dword [esp + 0x248]
mov ecx, dword [eax + 8]
push ecx
mov bl, 1
call fcn.004908b1
add esp, 4
cmp dword [esp + 0x14], 0
jl 0x42f5f9
mov edx, dword [esp + 0x14]
push edx
call fcn.0048fff4
add esp, 4
mov dword [esp + 0x28], eax
test eax, eax
je 0x42f5f9
mov eax, dword [esp + 0x248]
mov byte [eax + 0x14], 2
jmp 0x42f44e
xor bl, bl
jmp 0x42f5c9
test bl, bl
je 0x42f614
mov eax, dword [esp + 0x248]
mov dword [eax + 0x10], 0
mov dword [eax + 8], 0x4cb4dc
jmp 0x42f623
mov ecx, dword [esp + 0x248]
mov edx, dword [ecx + 8]
xor eax, eax
mov word [edx], ax
mov ecx, dword [esp + 0x248]
push 0x4a3890
mov dword [ecx + 0xc], 0
push str.Out_of_memory.
jmp 0x42f3b3
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp + ebp]
mov dword [edx + 0xc], eax
jmp 0x42f3c6
mov dword [esp + 0x1c], 0
mov ebx, 1
mov ecx, dword [esp + 0x24c]
mov edi, dword [esp + 0x24]
movzx eax, word [ecx]
mov dx, word [0x4c6970]
test ax, ax
je 0x42f69f
cmp ax, dx
je 0x42f6ba
cmp ax, si
je 0x42f6ba
test edi, edi
je 0x42f68f
mov word [ebp], ax
add ebp, 2
jmp 0x42f693
add dword [esp + 0x1c], ebx
movzx eax, word [ecx + 2]
add ecx, 2
test ax, ax
jne 0x42f678
add edi, ebx
mov dword [esp + 0x24], edi
cmp edi, 2
jge 0x42f95e
mov ecx, dword [esp + 0x248]
jmp 0x42f321
movzx eax, word [ecx]
test ax, ax
je 0x42f69f
cmp ax, dx
jne 0x42f7bd
test edi, edi
je 0x42f7a9
movzx eax, word [ecx + 2]
lea edx, [eax - 0x61]
cmp edx, 0x15
ja case.0x42f6ea.99
movzx edx, byte [edx + 0x42fa2c]
jmp dword [edx*4 + 0x42fa0c]
mov eax, 7
mov word [ebp], ax
add ecx, 2
add ebp, 2
add ecx, 2
lea ebx, [eax - 6]
jmp 0x42f669
mov edx, 8
mov word [ebp], dx
add ecx, 2
add ebp, 2
add ecx, 2
lea ebx, [edx - 7]
jmp 0x42f669
mov eax, 0xc
mov word [ebp], ax
add ecx, 2
add ebp, 2
add ecx, 2
lea ebx, [eax - 0xb]
jmp 0x42f669
mov edx, 0xa
mov word [ebp], dx
add ecx, 2
add ebp, 2
add ecx, 2
lea ebx, [edx - 9]
jmp 0x42f669
mov eax, 0xd
mov word [ebp], ax
add ecx, 2
add ebp, 2
add ecx, 2
lea ebx, [eax - 0xc]
jmp 0x42f669
mov edx, 9
mov word [ebp], dx
add ecx, 2
add ebp, 2
add ecx, 2
lea ebx, [edx - 8]
jmp 0x42f669
mov eax, 0xb
mov word [ebp], ax
add ecx, 2
add ebp, 2
add ecx, 2
mov ebx, 1
jmp 0x42f669
add dword [esp + 0x1c], ebx
add ecx, 2
add ecx, 2
mov ebx, 1
jmp 0x42f669
lea edx, [ecx + 2]
mov ebx, edx
movzx eax, word [ebx]
test ax, ax
je 0x42f942
mov edi, edi
cmp ax, si
je 0x42f7ee
movzx eax, word [ebx + 2]
add ebx, 2
test ax, ax
jne 0x42f7d0
add ecx, 2
mov ebx, 1
jmp 0x42f669
cmp word [ebx], 0
je 0x42f942
mov edi, ebx
sub edi, ecx
sar edi, 1
dec edi
je 0x42f93c
cmp edi, 0xfd
ja 0x42f93c
push edi
push edx
lea ecx, [esp + 0x48]
push ecx
call fcn.00492b44
xor edx, edx
add esp, 0xc
mov word [esp + edi*2 + 0x40], dx
cmp word [esp + 0x40], dx
je 0x42f94f
lea eax, [esp + 0x23]
push eax
push 3
lea ecx, [esp + 0x34]
push ecx
push edi
lea edx, [esp + 0x50]
push edx
mov ecx, 0x4cb508
call fcn.004239e0
test eax, eax
jne 0x42f871
cmp byte [esp + 0x23], al
mov ecx, dword [esp + 0x2c]
setne al
lea edx, [esp + 0x40]
inc eax
push eax
push ecx
push edx
push 0x4cb508
mov ecx, edi
call fcn.00423c90
mov esi, eax
test esi, esi
je 0x42f94f
cmp byte [esi + 0x17], 0
jne 0x42f884
mov esi, dword [esi + 0xc]
cmp esi, dword [esp + 0x248]
je 0x42f935
cmp dword [esp + 0x24], 0
je 0x42f8a9
push ebp
mov ecx, esi
call fcn.00479b00
lea ebp, [ebp + eax*2]
jmp 0x42f935
movzx eax, byte [esi + 0x17]
cmp eax, 3
ja case.default.0x42f8b2
jmp dword [eax*4 + 0x42fa44]
mov eax, esi
call fcn.00401160
cmp dword [0x4ca6d0], 0
jne 0x42f8fb
cmp dword [esi + 0xc], 0
jne 0x42f8fb
mov ecx, dword [esi + 0x18]
push 0
lea eax, [esp + 0x40]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x42f8f1
mov dword [0x4cca60], 0
dec eax
jmp 0x42f931
mov dword [0x4cca60], esi
xor eax, eax
jmp 0x42f931
mov eax, dword [esi + 0xc]
shr eax, 1
jmp 0x42f931
mov ecx, dword [esi + 0xc]
push 0
call fcn.00479b00
jmp 0x42f931
push 0
mov ecx, 0x4cc048
call fcn.00404410
cmp eax, 0xffffffff
jne 0x42f931
xor eax, eax
jmp 0x42f931
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 si, word [0x4c696c]
mov edi, dword [esp + 0x24]
mov ecx, ebx
add ecx, 2
mov ebx, 1
jmp 0x42f669
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x234
ret 8
mov esi, dword [esp + 0x248]
xor ecx, ecx
push ecx
mov word [ebp], cx
push ebx
mov ecx, esi
call fcn.00401220
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42f977
mov ebx, dword [esp + 0x248]
sub eax, edx
sar eax, 1
mov edi, eax
cmp byte [esi + 0x17], cl
jne 0x42f999
mov esi, dword [ebx + 0xc]
jmp 0x42f9a0
mov esi, dword [esp + 0x248]
cmp byte [esi + 0x17], 1
jne 0x42f9b8
test byte [esi + 0x15], 8
je 0x42f9b3
mov eax, esi
call fcn.00401160
lea eax, [esi + 0xc]
jmp 0x42f9bd
mov eax, 0x4cc20c
lea edx, [edi + edi]
mov dword [eax], edx
cmp byte [ebx + 0x17], 0
jne 0x42f9cd
mov eax, dword [ebx + 0xc]
jmp 0x42f9cf
mov eax, ebx
cmp byte [eax + 0x17], 2
jne 0x42f9f5
cmp dword [0x4cc054], 0
je 0x42f9f5
mov ecx, 0x4cc048
call fcn.004046e0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x234
ret 8
and byte [eax + 0x15], 0x86
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x234
ret 8