Function at 0x45e930
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d36e7
mov eax, dword fs:[0]
push eax
sub esp, 0x270
mov eax, dword [0x50e008]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x268], edx
mov ebx, ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x26c], eax
call fcn.00402850
mov esi, eax
cmp dword [esi + 0x10], 0
jne 0x45e983
xor al, al
jmp 0x45ec00
lea ecx, [ebp - 0x234]
call fcn.00402750
mov dword [ebp - 4], 0
mov eax, esi
mov edi, dword [esi + 0x14]
cmp edi, 8
jb 0x45e9a1
mov eax, dword [esi]
cmp word [eax], 0x40
jne 0x45e9dd
mov eax, dword [esi + 0x10]
lea ecx, [ebp - 0x24c]
dec eax
mov edx, ebx
push eax
call fcn.00412830
add esp, 4
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x234]
push eax
call fcn.004026c0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x24c]
call fcn.00402290
jmp 0x45ea06
mov ecx, ebx
call fcn.00402850
lea ecx, [ebp - 0x234]
cmp ecx, eax
je 0x45ea06
mov eax, esi
cmp edi, 8
jb 0x45e9f7
mov eax, dword [esi]
push dword [esi + 0x10]
lea ecx, [ebp - 0x234]
push eax
call fcn.00402870
push 0x208
lea eax, [ebp - 0x21c]
push 0
push eax
call fcn.004a2d80
add esp, 0xc
lea eax, [ebp - 0x21c]
lea ecx, [ebp - 0x234]
push 0x104
push eax
call fcn.00405b00
mov ebx, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push eax
call ebx
mov edi, eax
cmp edi, 0x104
jb 0x45ea92
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004a173e
add esp, 4
lea ecx, [ebp - 0x234]
mov esi, eax
push edi
push esi
call fcn.00405b00
push eax
call ebx
push esi
call fcn.00402a80
add esp, 4
lea ecx, [ebp - 0x234]
push eax
push esi
call fcn.00402870
push esi
call fcn.004a1739
add esp, 4
jmp 0x45eab4
lea eax, [ebp - 0x21c]
push eax
call fcn.00402a80
add esp, 4
lea ecx, [ebp - 0x234]
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.00402870
push 0x4f2510
lea ecx, [ebp - 0x264]
call fcn.00402700
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x234]
call fcn.00402850
lea ecx, [ebp - 0x264]
mov esi, eax
call fcn.00402850
mov edi, eax
mov edx, edi
cmp dword [edi + 0x14], 8
jb 0x45eaec
mov edx, dword [edi]
mov ebx, dword [esi + 0x14]
mov eax, esi
cmp ebx, 8
jb 0x45eaf8
mov eax, dword [esi]
push dword [edi + 0x10]
mov ecx, dword [esi + 0x10]
push edx
push 0
push ecx
push eax
mov dword [ebp - 0x274], ecx
call fcn.00412f80
add esp, 0x14
mov dword [ebp - 0x270], eax
cmp eax, 0xffffffff
je 0x45ebaa
push eax
lea edx, [ebp - 0x234]
lea ecx, [ebp - 0x24c]
call fcn.004127c0
add esp, 4
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x268]
push eax
call fcn.004026c0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x24c]
call fcn.00402290
mov ebx, dword [ebp - 0x26c]
test ebx, ebx
je 0x45eba6
mov eax, dword [esi + 0x10]
lea edx, [ebp - 0x234]
sub eax, dword [edi + 0x10]
lea ecx, [ebp - 0x24c]
sub eax, dword [ebp - 0x270]
push eax
call fcn.00412830
add esp, 4
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x24c]
call fcn.00405b00
mov ecx, eax
call fcn.00412230
mov dword [ebx], eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x24c]
call fcn.00402290
mov bl, 1
jmp 0x45ebdd
lea ecx, [ebp - 0x234]
call fcn.00402850
mov ecx, dword [ebp - 0x268]
cmp ecx, eax
je 0x45ebd2
cmp ebx, 8
jb 0x45ebc6
mov esi, dword [esi]
push dword [ebp - 0x274]
push esi
call fcn.00402870
mov ebx, dword [ebp - 0x26c]
test ebx, ebx
sete bl
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x264]
call fcn.00402290
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x234]
call fcn.00402290
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 - 0x14]
xor ecx, ebp
call fcn.004a100a
mov esp, ebp
pop ebp
ret