Function at 0x48af90
Capabilities:
Query environment variable

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x430
mov esi, ecx
lea ecx, [esp + 0x30]
push dword [esp + 0x444]
call fcn.0048b210
add esp, 4
mov ecx, dword [esp + 0x30]
mov eax, ecx
neg eax
jno 0x48b011
cmp byte [esp + 0x34], 3
jne 0x48b006
mov ebp, esi
mov esi, dword [esp + 0x38]
mov ebx, dword [esi + 4]
mov edi, dword [esi]
mov eax, dword [ebx]
test eax, eax
je 0x48afd7
push edi
call eax
add esp, 4
cmp dword [ebx + 4], 0
je 0x48aff5
cmp dword [ebx + 8], 9
jb 0x48afe6
mov edi, dword [edi - 4]
push edi
push 0
push dword [0x6019d8]
call dword [sym.imp.kernel32.dll_HeapFree]
push esi
push 0
push dword [0x6019d8]
call dword [sym.imp.kernel32.dll_HeapFree]
mov esi, ebp
mov dword [esi], 0x80000000
jmp 0x48b1e1
mov eax, dword [esp + 0x34]
mov dword [esp], esi
mov ebx, 0x200
xor esi, esi
mov dword [esp + 8], 0
mov dword [esp + 0xc], 2
mov dword [esp + 4], ecx
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 2
mov dword [esp + 0x1c], eax
cmp ebx, 0x201
jae 0x48b080
jmp 0x48b06e
jbe 0x48b109
cmp ebx, 0x201
jae 0x48b080
mov dword [esp + 0x18], 0x200
lea edi, [esp + 0x30]
mov ebp, ebx
jmp 0x48b092
sub ebx, esi
jne 0x48b0e5
mov edi, dword [esp + 0x14]
mov ebp, esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x18], esi
push 0
call dword [sym.imp.kernel32.dll_SetLastError]
push ebp
push edi
push dword [esp + 0x24]
call dword [sym.imp.kernel32.dll_GetEnvironmentVariableW]
mov ebx, eax
test eax, eax
jne 0x48b0ba
call dword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jne 0x48b19f
cmp ebx, ebp
jne 0x48b060
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x7a
jne 0x48b20a
lea ebx, [ebp + ebp]
test ebp, ebp
mov eax, 0xffffffff
cmovs ebx, eax
cmp ebx, 0x201
jb 0x48b06e
jmp 0x48b080
lea ecx, [esp + 8]
mov edx, esi
push 2
push 2
push ebx
call fcn.00500270
add esp, 0xc
mov eax, dword [esp + 0xc]
mov esi, dword [esp + 8]
mov dword [esp + 0x14], eax
jmp 0x48b084
cmp ebx, dword [esp + 0x18]
ja 0x48b20a
lea ecx, [esp + 0x20]
mov edx, edi
push ebx
call fcn.0048a230
add esp, 4
cmp dword [esp + 8], 0
je 0x48b13b
push dword [esp + 0xc]
push 0
push dword [0x6019d8]
call dword [sym.imp.kernel32.dll_HeapFree]
xor eax, eax
mov ecx, dword [esp + 4]
cmp eax, dword [esp + 0x20]
jno 0x48b1ec
mov eax, dword [esp]
mov esi, dword [esp + 0x28]
cmp byte [esp + 0x24], 3
mov dword [eax], 0x80000000
jne 0x48b1cb
mov ebx, dword [esi + 4]
mov edi, dword [esi]
mov eax, dword [ebx]
test eax, eax
je 0x48b170
push edi
call eax
add esp, 4
cmp dword [ebx + 4], 0
je 0x48b18e
cmp dword [ebx + 8], 9
jb 0x48b17f
mov edi, dword [edi - 4]
push edi
push 0
push dword [0x6019d8]
call dword [sym.imp.kernel32.dll_HeapFree]
push esi
push 0
push dword [0x6019d8]
call dword [sym.imp.kernel32.dll_HeapFree]
jmp 0x48b1c7
call dword [sym.imp.kernel32.dll_GetLastError]
cmp dword [esp + 8], 0
je 0x48b1be
push dword [esp + 0xc]
push 0
push dword [0x6019d8]
call dword [sym.imp.kernel32.dll_HeapFree]
mov eax, dword [esp]
mov dword [eax], 0x80000000
mov ecx, dword [esp + 4]
test ecx, ecx
je 0x48b1e1
push dword [esp + 0x1c]
push 0
push dword [0x6019d8]
call dword [sym.imp.kernel32.dll_HeapFree]
add esp, 0x430
pop esi
pop edi
pop ebx
pop ebp
ret
movsd xmm0, qword [esp + 0x20]
mov eax, dword [esp]
movsd xmm1, qword [esp + 0x28]
movsd qword [eax + 8], xmm1
movsd qword [eax], xmm0
test ecx, ecx
jne 0x48b1cf
jmp 0x48b1e1
ud2