Function at 0x42a7f0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x434
mov esi, ecx
lea ecx, [ebp - 0x440]
push dword [ebp + 8]
call fcn.0042aa50
add esp, 4
mov ecx, dword [ebp - 0x440]
mov eax, ecx
neg eax
jno 0x42a877
cmp byte [ebp - 0x43c], 3
jne 0x42a86c
mov dword [ebp - 0x10], esi
mov esi, dword [ebp - 0x438]
mov ebx, dword [esi + 4]
mov edi, dword [esi]
mov eax, dword [ebx]
test eax, eax
je 0x42a83e
push edi
call eax
add esp, 4
cmp dword [ebx + 4], 0
je 0x42a85b
cmp dword [ebx + 8], 9
jb 0x42a84d
mov edi, dword [edi - 4]
push edi
push 0
push dword [0x4af0c0]
call sub.kernel32.dll_HeapFree
push esi
push 0
push dword [0x4af0c0]
call sub.kernel32.dll_HeapFree
mov esi, dword [ebp - 0x10]
mov dword [esi], 0x80000000
jmp 0x42aa23
mov eax, dword [ebp - 0x43c]
mov dword [ebp - 0x10], esi
mov esi, 0x200
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 2
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x24], 2
mov dword [ebp - 0x30], eax
cmp esi, 0x201
jae 0x42a8e0
jmp 0x42a8ce
jbe 0x42a95d
cmp esi, 0x201
jae 0x42a8e0
mov dword [ebp - 0x28], 0x200
lea edi, [ebp - 0x440]
mov ebx, esi
jmp 0x42a8f3
mov ebx, dword [ebp - 0x2c]
sub esi, ebx
jne 0x42a940
mov edi, dword [ebp - 0x24]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x2c], ebx
push 0
call sub.kernel32.dll_SetLastError
push ebx
push edi
push dword [ebp - 0x30]
call sub.kernel32.dll_GetEnvironmentVariableW
mov esi, eax
test eax, eax
jne 0x42a917
call sub.kernel32.dll_GetLastError
test eax, eax
jne 0x42a9e8
cmp esi, ebx
jne 0x42a8c0
call sub.kernel32.dll_GetLastError
cmp eax, 0x7a
jne 0x42aa4a
lea esi, [ebx + ebx]
test ebx, ebx
mov eax, 0xffffffff
cmovs esi, eax
cmp esi, 0x201
jb 0x42a8ce
jmp 0x42a8e0
lea ecx, [ebp - 0x20]
mov edx, ebx
push 2
push 2
push esi
call fcn.0042a6b0
add esp, 0xc
mov eax, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x20]
mov dword [ebp - 0x24], eax
jmp 0x42a8e7
cmp esi, dword [ebp - 0x28]
ja 0x42aa4a
lea ecx, [ebp - 0x40]
mov edx, edi
push esi
call fcn.00429d70
add esp, 4
cmp dword [ebp - 0x20], 0
je 0x42a98a
push dword [ebp - 0x1c]
push 0
push dword [0x4af0c0]
call sub.kernel32.dll_HeapFree
xor eax, eax
mov ecx, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x40]
jno 0x42aa2e
mov eax, dword [ebp - 0x10]
mov esi, dword [ebp - 0x38]
cmp byte [ebp - 0x3c], 3
mov dword [eax], 0x80000000
jne 0x42aa0f
mov ebx, dword [esi + 4]
mov edi, dword [esi]
mov eax, dword [ebx]
test eax, eax
je 0x42a9bb
push edi
call eax
add esp, 4
cmp dword [ebx + 4], 0
je 0x42a9d8
cmp dword [ebx + 8], 9
jb 0x42a9ca
mov edi, dword [edi - 4]
push edi
push 0
push dword [0x4af0c0]
call sub.kernel32.dll_HeapFree
push esi
push 0
push dword [0x4af0c0]
call sub.kernel32.dll_HeapFree
jmp 0x42aa0c
call sub.kernel32.dll_GetLastError
cmp dword [ebp - 0x20], 0
je 0x42aa03
push dword [ebp - 0x1c]
push 0
push dword [0x4af0c0]
call sub.kernel32.dll_HeapFree
mov eax, dword [ebp - 0x10]
mov dword [eax], 0x80000000
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x42aa23
push dword [ebp - 0x30]
push 0
push dword [0x4af0c0]
call sub.kernel32.dll_HeapFree
add esp, 0x434
pop esi
pop edi
pop ebx
pop ebp
ret
movsd xmm0, qword [ebp - 0x40]
mov eax, dword [ebp - 0x10]
movsd xmm1, qword [ebp - 0x38]
movsd qword [eax + 8], xmm1
movsd qword [eax], xmm0
test ecx, ecx
jne 0x42aa13
jmp 0x42aa23
ud2