Function at 0x4834c0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x450
mov esi, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
lea ecx, [esp + 0x4c]
push dword [ebp + 0x10]
call fcn.004a9400
add esp, 4
mov ecx, dword [esp + 0x4c]
mov eax, ecx
neg eax
jno 0x483539
cmp byte [esp + 0x50], 3
jne 0x48352e
mov edi, dword [esp + 0x54]
mov esi, dword [edi + 4]
mov ebx, dword [edi]
mov eax, dword [esi]
test eax, eax
je 0x48350a
push ebx
call eax
add esp, 4
mov eax, dword [esi + 4]
test eax, eax
je 0x48351e
push dword [esi + 8]
push eax
push ebx
call fcn.0040cd20
add esp, 0xc
push 4
push 0xc
push edi
call fcn.0040cd20
add esp, 0xc
mov esi, dword [ebp + 8]
mov dword [esi], 0x80000000
jmp 0x483716
mov eax, dword [esp + 0x50]
mov ebx, 0x200
mov dword [esp + 4], 0
mov dword [esp + 8], 2
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x18], 2
mov dword [esp + 0x14], eax
cmp ebx, 0x201
jae 0x4835a0
jmp 0x48358e
jbe 0x48362c
cmp ebx, 0x201
jae 0x4835a0
mov dword [esp + 0x1c], 0x200
lea edi, [esp + 0x4c]
mov esi, ebx
jmp 0x4835d7
mov esi, dword [esp + 0x20]
sub ebx, esi
je 0x4835c7
mov edx, esi
lea ecx, [esp + 4]
push 2
push 2
push ebx
call fcn.0046e310
add esp, 0xc
mov esi, dword [esp + 4]
mov eax, dword [esp + 8]
mov dword [esp + 0x18], eax
mov edi, dword [esp + 0x18]
mov dword [esp + 0xc], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
push 0
call sub.kernel32.dll_SetLastError
push esi
push edi
push dword [esp + 0x1c]
call sub.kernel32.dll_GetEnvironmentVariableW
mov ebx, eax
test eax, eax
jne 0x4835fc
call sub.kernel32.dll_GetLastError
test eax, eax
jne 0x483698
cmp ebx, esi
jne 0x483580
call sub.kernel32.dll_GetLastError
cmp eax, 0x7a
jne 0x48373a
lea ebx, [esi + esi]
test esi, esi
mov eax, 0xffffffff
cmovs ebx, eax
cmp ebx, 0x201
jb 0x48358e
jmp 0x4835a0
mov eax, dword [esp + 0x1c]
cmp ebx, eax
ja 0x483750
lea eax, [esp + 0x3c]
push ebx
push edi
push eax
call fcn.0048fe20
add esp, 0xc
mov eax, dword [esp + 4]
mov esi, dword [esp + 0x3c]
mov ebx, dword [esp + 0x40]
movq xmm0, qword [esp + 0x44]
test eax, eax
je 0x48367a
add eax, eax
push 2
push eax
push dword [esp + 0x10]
movdqa xmmword [esp + 0x2c], xmm0
call fcn.0040cd20
movdqa xmm0, xmmword [esp + 0x2c]
add esp, 0xc
mov eax, esi
neg eax
jno 0x483720
movd edi, xmm0
mov eax, dword [ebp + 8]
cmp bl, 3
mov dword [eax], 0x80000000
je 0x4836c8
jmp 0x4836fa
call sub.kernel32.dll_GetLastError
mov edi, eax
mov eax, dword [esp + 4]
test eax, eax
je 0x4836b8
add eax, eax
push 2
push eax
push dword [esp + 0x10]
call fcn.0040cd20
add esp, 0xc
xor ebx, ebx
mov eax, dword [ebp + 8]
cmp bl, 3
mov dword [eax], 0x80000000
jne 0x4836fa
mov esi, dword [edi + 4]
mov ebx, dword [edi]
mov eax, dword [esi]
test eax, eax
je 0x4836d9
push ebx
call eax
add esp, 4
mov eax, dword [esi + 4]
test eax, eax
je 0x4836ed
push dword [esi + 8]
push eax
push ebx
call fcn.0040cd20
add esp, 0xc
push 4
push 0xc
push edi
call fcn.0040cd20
add esp, 0xc
mov eax, dword [esp + 0x10]
mov esi, dword [ebp + 8]
test eax, eax
je 0x483716
add eax, eax
push 2
push eax
push dword [esp + 0x1c]
call fcn.0040cd20
add esp, 0xc
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp + 8]
mov dword [eax], esi
mov dword [eax + 4], ebx
movq qword [eax + 8], xmm0
mov eax, dword [esp + 0x10]
mov esi, dword [ebp + 8]
test eax, eax
jne 0x483705
jmp 0x483716
push 0x587be0
push 0x28
push str.internal_error:_entered_unreachable_code_fCX
call fcn.004dab10
add esp, 0xc
jmp 0x48375f
push 0x587bd0
push eax
push ebx
call fcn.004e0750
add esp, 0xc
ud2