Function at 0x48e150
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.0048e3d0
add esp, 4
mov ecx, dword [esp + 0x30]
mov eax, ecx
neg eax
jno 0x48e1d1
cmp byte [esp + 0x34], 3
jne 0x48e1c6
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 0x48e197
push edi
call eax
add esp, 4
cmp dword [ebx + 4], 0
je 0x48e1b5
cmp dword [ebx + 8], 9
jb 0x48e1a6
mov edi, dword [edi - 4]
push edi
push 0
push dword [0x903200]
call dword [sym.imp.kernel32.dll_HeapFree]
push esi
push 0
push dword [0x903200]
call dword [sym.imp.kernel32.dll_HeapFree]
mov esi, ebp
mov dword [esi], 0x80000000
jmp 0x48e3a1
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 0x48e240
jmp 0x48e22e
jbe 0x48e2c9
cmp ebx, 0x201
jae 0x48e240
mov dword [esp + 0x18], 0x200
lea edi, [esp + 0x30]
mov ebp, ebx
jmp 0x48e252
sub ebx, esi
jne 0x48e2a5
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 0x48e27a
call dword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jne 0x48e35f
cmp ebx, ebp
jne 0x48e220
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x7a
jne 0x48e3ca
lea ebx, [ebp + ebp]
test ebp, ebp
mov eax, 0xffffffff
cmovs ebx, eax
cmp ebx, 0x201
jb 0x48e22e
jmp 0x48e240
lea ecx, [esp + 8]
mov edx, esi
push 2
push 2
push ebx
call fcn.004f2050
add esp, 0xc
mov eax, dword [esp + 0xc]
mov esi, dword [esp + 8]
mov dword [esp + 0x14], eax
jmp 0x48e244
cmp ebx, dword [esp + 0x18]
ja 0x48e3ca
lea ecx, [esp + 0x20]
mov edx, edi
push ebx
call fcn.0048d3f0
add esp, 4
cmp dword [esp + 8], 0
je 0x48e2fb
push dword [esp + 0xc]
push 0
push dword [0x903200]
call dword [sym.imp.kernel32.dll_HeapFree]
xor eax, eax
mov ecx, dword [esp + 4]
cmp eax, dword [esp + 0x20]
jno 0x48e3ac
mov eax, dword [esp]
mov esi, dword [esp + 0x28]
cmp byte [esp + 0x24], 3
mov dword [eax], 0x80000000
jne 0x48e38b
mov ebx, dword [esi + 4]
mov edi, dword [esi]
mov eax, dword [ebx]
test eax, eax
je 0x48e330
push edi
call eax
add esp, 4
cmp dword [ebx + 4], 0
je 0x48e34e
cmp dword [ebx + 8], 9
jb 0x48e33f
mov edi, dword [edi - 4]
push edi
push 0
push dword [0x903200]
call dword [sym.imp.kernel32.dll_HeapFree]
push esi
push 0
push dword [0x903200]
call dword [sym.imp.kernel32.dll_HeapFree]
jmp 0x48e387
call dword [sym.imp.kernel32.dll_GetLastError]
cmp dword [esp + 8], 0
je 0x48e37e
push dword [esp + 0xc]
push 0
push dword [0x903200]
call dword [sym.imp.kernel32.dll_HeapFree]
mov eax, dword [esp]
mov dword [eax], 0x80000000
mov ecx, dword [esp + 4]
test ecx, ecx
je 0x48e3a1
push dword [esp + 0x1c]
push 0
push dword [0x903200]
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 0x48e38f
jmp 0x48e3a1
ud2