Function at 0x4553c0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x444
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x45f6d0
mov eax, dword [ebp + 8]
mov edi, ecx
lea ecx, [ebp - 0x18]
mov esi, dword fs:[0]
mov dword [ebp - 0x18], esi
mov dword fs:[0], ecx
lea ecx, [ebp - 0x450]
push eax
call fcn.00450df0
add esp, 4
mov eax, dword [ebp - 0x450]
cmp eax, 0x80000000
jne 0x455428
lea ecx, [ebp - 0x450]
call fcn.004510c0
mov dword [edi], 0x80000000
jmp 0x4555cc
mov ecx, dword [ebp - 0x44c]
mov esi, 0x200
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 2
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x20], 2
mov dword [ebp - 0x2c], ecx
cmp esi, 0x201
jae 0x455490
jmp 0x45547e
jbe 0x455519
cmp esi, 0x201
jae 0x455490
mov dword [ebp - 0x24], 0x200
lea ebx, [ebp - 0x450]
mov edi, esi
jmp 0x4554c1
mov edi, dword [ebp - 0x28]
sub esi, edi
je 0x4554b5
mov dword [ebp - 0x10], 2
lea ecx, [ebp - 0x40]
mov edx, edi
push esi
call fcn.00471ca0
add esp, 4
mov edi, dword [ebp - 0x40]
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x20]
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x28], edi
push 0
call dword [sym.imp.kernel32.dll_SetLastError]
push edi
push ebx
push dword [ebp - 0x2c]
call dword [sym.imp.kernel32.dll_GetEnvironmentVariableW]
mov esi, eax
test eax, eax
jne 0x4554e8
call dword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jne 0x4555e0
cmp esi, edi
jne 0x455470
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x7a
jne 0x45562c
lea esi, [edi + edi]
test edi, edi
mov eax, 0xffffffff
cmovs esi, eax
cmp esi, 0x201
jb 0x45547e
jmp 0x455490
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x10], 2
cmp esi, edx
ja 0x45564c
lea ecx, [ebp - 0x50]
mov edx, ebx
push esi
call fcn.00453380
add esp, 4
mov eax, dword [ebp - 0x44]
mov esi, dword [ebp - 0x50]
mov ebx, dword [ebp - 0x4c]
mov edi, dword [ebp - 0x48]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x28], 0
je 0x45555f
push dword [ebp - 0x20]
push 0
push dword [0x48fd58]
call dword [sym.imp.kernel32.dll_HeapFree]
cmp esi, 0x80000000
jne 0x4555a4
mov eax, dword [ebp - 0x30]
cmp bl, 3
mov dword [eax], 0x80000000
jne 0x4555b5
mov eax, dword [edi]
mov ecx, dword [edi + 4]
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x10], 1
mov dword [ebp - 0x20], eax
push eax
mov dword [ebp - 0x28], ecx
call dword [ecx]
add esp, 4
mov eax, dword [ebp - 0x28]
cmp dword [eax + 4], 0
je 0x455613
cmp dword [eax + 8], 9
jae 0x4555fe
mov eax, dword [ebp - 0x20]
jmp 0x455604
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x24]
mov dword [eax], esi
mov dword [eax + 4], ebx
mov dword [eax + 8], edi
mov dword [eax + 0xc], ecx
cmp dword [ebp - 0x34], 0
je 0x4555cc
push dword [ebp - 0x2c]
push 0
push dword [0x48fd58]
call dword [sym.imp.kernel32.dll_HeapFree]
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x444
pop esi
pop edi
pop ebx
pop ebp
ret
xor ebx, ebx
mov esi, 0x80000000
call dword [sym.imp.kernel32.dll_GetLastError]
mov edi, eax
cmp dword [ebp - 0x28], 0
jne 0x45554e
jmp 0x45555f
mov eax, dword [ebp - 0x20]
mov eax, dword [eax - 4]
push eax
push 0
push dword [0x48fd58]
call dword [sym.imp.kernel32.dll_HeapFree]
push dword [ebp - 0x24]
push 0
push dword [0x48fd58]
call dword [sym.imp.kernel32.dll_HeapFree]
cmp dword [ebp - 0x34], 0
jne 0x4555bb
jmp 0x4555cc
mov dword [ebp - 0x10], 2
mov ecx, str.internal_error:_entered_unreachable_codeZ__F___SqZ_____a__GF____DL_F__y_X_Wf__Ws_Et_QZcg__VZ_HT______aC___i_3_____XE8
mov edx, 0x28
push 0x47f134
call fcn.0046ea20
add esp, 4
jmp 0x45565b
mov ecx, esi
push 0x47f124
call fcn.0046e9c0
add esp, 4
ud2