Function at 0x45e7f0
Capabilities:
Query environment variable

Disassembly:
push ebp
lea ebp, [esp - 0x254]
sub esp, 0x254
push 0xffffffffffffffff
push 0x4ec768
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x52f068]
xor eax, ebp
mov dword [ebp + 0x250], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], edx
mov ebx, ecx
mov eax, dword [ebp + 0x25c]
mov dword [ebp - 0x14], eax
call fcn.00402870
mov esi, eax
cmp dword [esi + 0x10], 0
jne 0x45e84b
xor al, al
jmp 0x45ea5d
lea ecx, [ebp + 0x30]
call fcn.00402850
mov dword [ebp - 4], 0
mov eax, esi
mov edi, dword [esi + 0x14]
cmp edi, 8
jb 0x45e866
mov eax, dword [esi]
cmp word [eax], 0x40
jne 0x45e899
mov eax, dword [esi + 0x10]
lea ecx, [ebp + 0x18]
dec eax
mov edx, ebx
push eax
call fcn.0046aac0
add esp, 4
mov byte [ebp - 4], 1
lea ecx, [ebp + 0x30]
push eax
call fcn.00403ca0
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x18]
call fcn.004027f0
jmp 0x45e8bc
mov ecx, ebx
call fcn.00402870
lea ecx, [ebp + 0x30]
cmp ecx, eax
je 0x45e8bc
mov eax, esi
cmp edi, 8
jb 0x45e8b0
mov eax, dword [esi]
push dword [esi + 0x10]
lea ecx, [ebp + 0x30]
push eax
call fcn.004028e0
push 0x208
lea eax, [ebp + 0x48]
push 0
push eax
call fcn.004bbb00
add esp, 0xc
lea eax, [ebp + 0x48]
lea ecx, [ebp + 0x30]
push 0x104
push eax
call fcn.004027b0
mov ebx, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push eax
call ebx
mov edi, eax
cmp edi, 0x104
jb 0x45e939
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004b97b5
add esp, 4
lea ecx, [ebp + 0x30]
mov esi, eax
push edi
push esi
call fcn.004027b0
push eax
call ebx
push esi
call fcn.00402af0
add esp, 4
lea ecx, [ebp + 0x30]
push eax
push esi
call fcn.004028e0
push esi
call fcn.004b97b0
add esp, 4
jmp 0x45e952
lea eax, [ebp + 0x48]
push eax
call fcn.00402af0
add esp, 4
lea ecx, [ebp + 0x30]
push eax
lea eax, [ebp + 0x48]
push eax
call fcn.004028e0
push 0x50ec24
lea ecx, [ebp]
call fcn.00402800
mov byte [ebp - 4], 2
lea ecx, [ebp + 0x30]
call fcn.00402870
lea ecx, [ebp]
mov esi, eax
call fcn.00402870
mov edi, eax
mov edx, edi
cmp dword [edi + 0x14], 8
jb 0x45e981
mov edx, dword [edi]
mov ebx, dword [esi + 0x14]
mov eax, esi
cmp ebx, 8
jb 0x45e98d
mov eax, dword [esi]
push dword [edi + 0x10]
mov ecx, dword [esi + 0x10]
push edx
push 0
push ecx
push eax
mov dword [ebp - 0x1c], ecx
call fcn.00409b10
add esp, 0x14
mov dword [ebp - 0x18], eax
cmp eax, 0xffffffff
je 0x45ea19
push eax
lea edx, [ebp + 0x30]
lea ecx, [ebp + 0x18]
call fcn.0046aa50
add esp, 4
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x10]
push eax
call fcn.00403ca0
mov byte [ebp - 4], 2
lea ecx, [ebp + 0x18]
call fcn.004027f0
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x45ea15
mov eax, dword [esi + 0x10]
lea edx, [ebp + 0x30]
sub eax, dword [edi + 0x10]
lea ecx, [ebp + 0x18]
sub eax, dword [ebp - 0x18]
push eax
call fcn.0046aac0
add esp, 4
mov byte [ebp - 4], 4
lea ecx, [ebp + 0x18]
call fcn.004027b0
xor edx, edx
mov ecx, eax
call fcn.0046a480
mov dword [ebx], eax
mov byte [ebp - 4], 2
lea ecx, [ebp + 0x18]
call fcn.004027f0
mov bl, 1
jmp 0x45ea40
lea ecx, [ebp + 0x30]
call fcn.00402870
mov ecx, dword [ebp - 0x10]
cmp ecx, eax
je 0x45ea38
cmp ebx, 8
jb 0x45ea2f
mov esi, dword [esi]
push dword [ebp - 0x1c]
push esi
call fcn.004028e0
mov ebx, dword [ebp - 0x14]
test ebx, ebx
sete bl
mov byte [ebp - 4], 0
lea ecx, [ebp]
call fcn.004027f0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x30]
call fcn.004027f0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x250]
xor ecx, ebp
call fcn.004b9059
lea esp, [ebp + 0x254]
pop ebp
ret