Function at 0x432520
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b1e30
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4e1370]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, dword [ebp + 8]
push edi
call fcn.00432890
mov eax, dword [edi]
mov ecx, dword [eax - 0xc]
test ecx, ecx
jl 0x432575
push 0x4c8f88
push eax
call fcn.004915bc
add esp, 8
test eax, eax
je 0x432575
sub eax, dword [edi]
sar eax, 1
je 0x432585
push 0x4c8f90
push 0x4c8f88
push edi
call fcn.00432930
mov eax, dword [edi]
push 0x2c
push eax
call fcn.00492421
add esp, 8
test eax, eax
je 0x4325df
mov ecx, dword [edi]
sub eax, ecx
sar eax, 1
cmp eax, 0xffffffff
je 0x4325df
mov dword [ebp - 4], 0
test eax, eax
jl 0x4325c5
cmp eax, dword [ecx - 8]
jg 0x4325c5
mov dword [ecx - 0xc], eax
mov ecx, dword [edi]
xor edx, edx
mov word [ecx + eax*2], dx
mov dword [ebp - 4], 0xffffffff
jmp 0x4325df
push 0x80070057
call fcn.004058d0
mov dword [ebp - 4], 0xffffffff
mov eax, 0x4325dc
ret
mov eax, dword [edi]
cmp dword [eax - 0xc], 0
jle 0x432605
push 0x22
push eax
call fcn.00490c36
add esp, 8
test eax, eax
je 0x432605
sub eax, dword [edi]
sar eax, 1
cmp eax, 0xffffffff
je 0x432605
push edi
call fcn.00432b40
mov eax, dword [edi]
cmp dword [eax - 0xc], 0
jle 0x4326ce
push 0x7e
push eax
call fcn.00490c36
add esp, 8
test eax, eax
je 0x4326ce
sub eax, dword [edi]
sar eax, 1
cmp eax, 0xffffffff
je 0x4326ce
push 0x4e74e0
push 0x20a
call fcn.00490c93
mov ebx, eax
add esp, 8
mov dword [ebp + 8], ebx
mov dword [ebp - 4], 2
test ebx, ebx
je 0x4326be
mov eax, dword [edi]
push 0x105
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
mov esi, eax
cmp esi, 0x105
jbe 0x4326b3
xor ecx, ecx
mov edx, 2
mul edx
seto cl
push 0x4e74e0
neg ecx
or ecx, eax
push ecx
call fcn.00490c93
add esp, 8
mov dword [ebp + 8], eax
cmp eax, ebx
je 0x43269d
push ebx
call fcn.00490210
mov eax, dword [ebp + 8]
add esp, 4
mov ebx, eax
mov dword [ebp + 8], ebx
test eax, eax
je 0x4326b3
mov ecx, dword [edi]
push esi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
mov esi, eax
test esi, esi
jbe 0x4326be
mov edx, ebx
call fcn.004059e0
push ebx
mov dword [ebp - 4], 0xffffffff
call fcn.00490210
add esp, 4
mov eax, dword [edi]
cmp dword [eax - 0xc], 0
jle 0x4327c9
push 0x25
push eax
call fcn.00490c36
add esp, 8
test eax, eax
je 0x4327c9
mov ecx, dword [edi]
sub eax, ecx
sar eax, 1
cmp eax, 0xffffffff
je 0x4327c9
add eax, 1
mov edx, dword [ecx - 0xc]
js 0x4327c9
cmp eax, edx
jge 0x4327c9
lea eax, [ecx + eax*2]
push 0x25
push eax
call fcn.00490c36
add esp, 8
test eax, eax
je 0x4327c9
sub eax, dword [edi]
sar eax, 1
cmp eax, 0xffffffff
je 0x4327c9
push 0x4e74e0
push 0x20a
call fcn.00490c93
mov ebx, eax
add esp, 8
mov dword [ebp + 8], ebx
mov dword [ebp - 4], 3
test ebx, ebx
je 0x4327c0
mov eax, dword [edi]
push 0x105
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov esi, eax
cmp esi, 0x105
jbe 0x4327b5
xor ecx, ecx
mov edx, 2
mul edx
seto cl
push 0x4e74e0
neg ecx
or ecx, eax
push ecx
call fcn.00490c93
add esp, 8
mov dword [ebp + 8], eax
cmp eax, ebx
je 0x43279f
push ebx
call fcn.00490210
mov eax, dword [ebp + 8]
add esp, 4
mov ebx, eax
mov dword [ebp + 8], ebx
test eax, eax
je 0x4327b5
mov ecx, dword [edi]
push esi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov esi, eax
test esi, esi
jbe 0x4327c0
mov edx, ebx
call fcn.004059e0
push ebx
call fcn.00490210
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret