Function at 0x4c34b0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x444
mov edi, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
lea ecx, [ebp - 0x450]
push dword [ebp + 0x10]
call fcn.004d6820
add esp, 4
mov eax, dword [ebp - 0x450]
test eax, eax
je 0x4c35d7
mov edx, dword [ebp - 0x44c]
mov esi, dword [ebp - 0x448]
mov ecx, eax
mov ebx, 0x200
xorps xmm0, xmm0
mov dword [ebp - 0x30], 2
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 2
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x24], ecx
movlps qword [ebp - 0x2c], xmm0
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x4c], edx
cmp ebx, 0x201
jae 0x4c3550
jmp 0x4c353e
jbe 0x4c362b
cmp ebx, 0x201
jae 0x4c3550
mov dword [ebp - 0x20], 0x200
lea edi, [ebp - 0x450]
mov esi, ebx
jmp 0x4c3584
mov esi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x10]
sub ebx, esi
sub eax, esi
cmp eax, ebx
jae 0x4c3575
mov edx, esi
lea ecx, [ebp - 0x30]
push ebx
call fcn.004b23c0
add esp, 4
mov eax, dword [ebp - 0x30]
mov esi, dword [ebp - 0x2c]
mov dword [ebp - 0x14], eax
mov edi, dword [ebp - 0x14]
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x18], esi
push 0
call sub.kernel32.dll_SetLastError
push esi
push edi
push dword [ebp - 0x24]
call sub.kernel32.dll_GetEnvironmentVariableW
mov ebx, eax
test eax, eax
jne 0x4c35a8
call sub.kernel32.dll_GetLastError
test eax, eax
jne 0x4c3711
cmp ebx, esi
jne 0x4c3530
call sub.kernel32.dll_GetLastError
cmp eax, 0x7a
jne 0x4c372c
add esi, esi
mov eax, 0xffffffff
cmovb esi, eax
mov ebx, esi
cmp ebx, 0x201
jb 0x4c353e
jmp 0x4c3550
cmp byte [ebp - 0x44c], 3
jne 0x4c3622
mov esi, dword [ebp - 0x448]
mov eax, dword [esi + 4]
mov eax, dword [eax]
push dword [esi]
call eax
add esp, 4
mov ecx, dword [esi + 4]
cmp dword [ecx + 4], 0
je 0x4c3614
mov eax, dword [esi]
cmp dword [ecx + 8], 9
jb 0x4c3606
mov eax, dword [eax - 4]
push eax
push 0
push dword [0x5880e0]
call sub.kernel32.dll_HeapFree
push esi
push 0
push dword [0x5880e0]
call sub.kernel32.dll_HeapFree
mov byte [edi + 0xc], 2
jmp 0x4c3704
mov eax, dword [ebp - 0x20]
cmp ebx, eax
ja 0x4c3742
lea eax, [ebp - 0x44]
push ebx
push edi
push eax
call fcn.004c5b70
add esp, 0xc
mov eax, dword [ebp - 0x40]
movzx edx, word [ebp - 0x37]
movzx ecx, byte [ebp - 0x35]
mov esi, dword [ebp - 0x44]
mov edi, dword [ebp - 0x3c]
movzx ebx, byte [ebp - 0x38]
mov dword [ebp - 0x10], eax
mov word [ebp - 0x1c], dx
mov byte [ebp - 0x1a], cl
cmp dword [ebp - 0x18], 0
je 0x4c3679
push dword [ebp - 0x14]
push 0
push dword [0x5880e0]
call sub.kernel32.dll_HeapFree
cmp bl, 2
jne 0x4c36cc
mov edi, dword [ebp + 8]
mov eax, esi
cmp al, 3
mov byte [edi + 0xc], 2
jne 0x4c36ed
mov esi, dword [ebp - 0x10]
mov eax, dword [esi + 4]
mov eax, dword [eax]
push dword [esi]
call eax
add esp, 4
mov ecx, dword [esi + 4]
cmp dword [ecx + 4], 0
je 0x4c36bc
mov eax, dword [esi]
cmp dword [ecx + 8], 9
jb 0x4c36ae
mov eax, dword [eax - 4]
push eax
push 0
push dword [0x5880e0]
call sub.kernel32.dll_HeapFree
push esi
push 0
push dword [0x5880e0]
call sub.kernel32.dll_HeapFree
jmp 0x4c36ed
movzx eax, word [ebp - 0x1c]
mov ecx, dword [ebp + 8]
mov bh, byte [ebp - 0x1a]
mov edx, dword [ebp - 0x10]
mov word [ecx + 0xd], ax
mov byte [ecx + 0xf], bh
mov dword [ecx + 4], edx
mov dword [ecx], esi
mov dword [ecx + 8], edi
mov edi, ecx
mov byte [ecx + 0xc], bl
cmp dword [ebp - 0x34], 0
mov eax, dword [ebp - 0x24]
je 0x4c3704
push eax
push 0
push dword [0x5880e0]
call sub.kernel32.dll_HeapFree
mov eax, edi
add esp, 0x444
pop esi
pop edi
pop ebx
pop ebp
ret
mov bl, 2
xor esi, esi
call sub.kernel32.dll_GetLastError
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x18], 0
jne 0x4c3669
jmp 0x4c3679
push 0x568fe0
push 0x28
push str.internal_error:_entered_unreachable_code_kV
call fcn.00414ad0
add esp, 0xc
jmp 0x4c3751
push 0x568ff0
push eax
push ebx
call fcn.00417f20
add esp, 0xc
ud2