Function at 0x43d5d0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fa430
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x5466b0]
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 0x5c
push 0x2f
push edi
call fcn.0040be00
mov eax, dword [edi]
mov ecx, dword [eax - 0xc]
test ecx, ecx
jl 0x43d629
push 0x517364
push eax
call fcn.004cc745
add esp, 8
test eax, eax
je 0x43d629
sub eax, dword [edi]
sar eax, 1
je 0x43d639
push 0x50fa9c
push 0x517364
push edi
call fcn.00417530
mov eax, dword [edi]
push 0x2c
push eax
call fcn.004cc992
add esp, 8
test eax, eax
je 0x43d693
mov ecx, dword [edi]
sub eax, ecx
sar eax, 1
cmp eax, 0xffffffff
je 0x43d693
mov dword [ebp - 4], 0
test eax, eax
jl 0x43d679
cmp eax, dword [ecx - 8]
jg 0x43d679
mov dword [ecx - 0xc], eax
mov ecx, dword [edi]
xor edx, edx
mov word [ecx + eax*2], dx
mov dword [ebp - 4], 0xffffffff
jmp 0x43d693
push 0x80070057
call fcn.00408810
mov dword [ebp - 4], 0xffffffff
mov eax, 0x43d690
ret
mov eax, dword [edi]
cmp dword [eax - 0xc], 0
jle 0x43d6b9
push 0x22
push eax
call fcn.004cc1f7
add esp, 8
test eax, eax
je 0x43d6b9
sub eax, dword [edi]
sar eax, 1
cmp eax, 0xffffffff
je 0x43d6b9
push edi
call fcn.0043df00
mov eax, dword [edi]
cmp dword [eax - 0xc], 0
jle 0x43d782
push 0x7e
push eax
call fcn.004cc1f7
add esp, 8
test eax, eax
je 0x43d782
sub eax, dword [edi]
sar eax, 1
cmp eax, 0xffffffff
je 0x43d782
push 0x54cfe0
push 0x20a
call fcn.004cc21d
mov ebx, eax
add esp, 8
mov dword [ebp + 8], ebx
mov dword [ebp - 4], 2
test ebx, ebx
je 0x43d772
mov eax, dword [edi]
push 0x105
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
mov esi, eax
cmp esi, 0x105
jbe 0x43d767
xor ecx, ecx
mov edx, 2
mul edx
seto cl
push 0x54cfe0
neg ecx
or ecx, eax
push ecx
call fcn.004cc21d
add esp, 8
mov dword [ebp + 8], eax
cmp eax, ebx
je 0x43d751
push ebx
call fcn.004cb380
mov eax, dword [ebp + 8]
add esp, 4
mov ebx, eax
mov dword [ebp + 8], ebx
test eax, eax
je 0x43d767
mov ecx, dword [edi]
push esi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
mov esi, eax
test esi, esi
jbe 0x43d772
mov edx, ebx
call fcn.004085a0
push ebx
mov dword [ebp - 4], 0xffffffff
call fcn.004cb380
add esp, 4
mov eax, dword [edi]
cmp dword [eax - 0xc], 0
jle 0x43d87d
push 0x25
push eax
call fcn.004cc1f7
add esp, 8
test eax, eax
je 0x43d87d
mov ecx, dword [edi]
sub eax, ecx
sar eax, 1
cmp eax, 0xffffffff
je 0x43d87d
add eax, 1
mov edx, dword [ecx - 0xc]
js 0x43d87d
cmp eax, edx
jge 0x43d87d
lea eax, [ecx + eax*2]
push 0x25
push eax
call fcn.004cc1f7
add esp, 8
test eax, eax
je 0x43d87d
sub eax, dword [edi]
sar eax, 1
cmp eax, 0xffffffff
je 0x43d87d
push 0x54cfe0
push 0x20a
call fcn.004cc21d
mov ebx, eax
add esp, 8
mov dword [ebp + 8], ebx
mov dword [ebp - 4], 3
test ebx, ebx
je 0x43d874
mov eax, dword [edi]
push 0x105
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov esi, eax
cmp esi, 0x105
jbe 0x43d869
xor ecx, ecx
mov edx, 2
mul edx
seto cl
push 0x54cfe0
neg ecx
or ecx, eax
push ecx
call fcn.004cc21d
add esp, 8
mov dword [ebp + 8], eax
cmp eax, ebx
je 0x43d853
push ebx
call fcn.004cb380
mov eax, dword [ebp + 8]
add esp, 4
mov ebx, eax
mov dword [ebp + 8], ebx
test eax, eax
je 0x43d869
mov ecx, dword [edi]
push esi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov esi, eax
test esi, esi
jbe 0x43d874
mov edx, ebx
call fcn.004085a0
push ebx
call fcn.004cb380
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 4