Function at 0x413cce
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
push ebx
push esi
push edi
lea esi, [ebp - 0x50]
mov edi, eax
call fcn.00404d28
lea esi, [ebp - 0x38]
call fcn.00404d28
lea eax, [edi + 4]
push eax
lea esi, [ebp - 4]
call fcn.00406e38
mov esi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push 0
push 0
push dword [ebp - 4]
call esi
mov ebx, eax
test ebx, ebx
jne 0x413d4b
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.00406e8b
push 0
call fcn.004278ad
pop ecx
lea esi, [ebp - 0x38]
call fcn.00404eaa
push dword [ebp - 0x38]
call fcn.0042751c
pop ecx
lea esi, [ebp - 0x50]
call fcn.00404eaa
push dword [ebp - 0x50]
call fcn.0042751c
pop ecx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004273c8
pop ecx
mov dword [ebp - 8], eax
test eax, eax
je 0x413d0d
push 0
call fcn.004278ad
pop ecx
push ebx
push dword [ebp - 8]
mov ebx, dword [ebp - 4]
push ebx
call esi
test eax, eax
jne 0x413d8a
lea eax, [ebx - 0x10]
call fcn.00406e8b
push dword [ebp - 8]
jmp 0x413d1a
lea esi, [ebp - 0x20]
call fcn.00413c6c
call fcn.004079c8
test eax, eax
je 0x413db4
cmp dword [edi + 0x940], 2
jne 0x413db4
cmp dword [ebp - 0x18], 0
je 0x413db4
lea eax, [ebp - 0x10]
push eax
call dword [ebp - 0x20]
mov dword [ebp - 0x14], eax
lea esi, [edi + 0x414]
push dword [esi]
push dword [ebp - 8]
call fcn.00413ab4
pop ecx
pop ecx
push dword [esi]
mov ecx, dword [ebp - 8]
push dword [ebp + 8]
lea edx, [ebp - 0x50]
call fcn.0041416f
mov eax, dword [ebp - 0x40]
sub eax, dword [ebp - 0x44]
sar eax, 2
push eax
call fcn.00413ab4
mov esi, dword [ebp + 0xc]
pop ecx
test esi, esi
je 0x413e32
mov eax, dword [ebp - 0x40]
sub eax, dword [ebp - 0x44]
test eax, 0xfffffffc
jne 0x413e32
mov eax, dword [esi + 0xd4]
and eax, 1
xor ecx, ecx
or eax, ecx
je 0x413e13
mov ebx, esi
call fcn.004147ef
mov ebx, dword [ebp - 4]
cmp dword [ebp - 0x18], 0
je 0x413d7d
cmp dword [ebp - 0x14], 0
je 0x413d7d
push dword [ebp - 0x10]
call dword [ebp - 0x1c]
jmp 0x413d7d
add edi, 0x418
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x413e3d
sub eax, edx
sar eax, 1
je 0x413ebd
lea esi, [ebp - 0x68]
call fcn.00404d28
push 0
mov eax, esi
push 0x44cfc0
push eax
mov eax, edi
call fcn.00407377
mov eax, dword [ebp - 0x58]
sub eax, dword [ebp - 0x5c]
add esp, 0xc
sar eax, 2
push eax
call fcn.00413ab4
mov eax, dword [ebp - 0x58]
sub eax, dword [ebp - 0x5c]
pop ecx
sar eax, 2
cmp eax, 0x14
ja 0x413ea9
mov eax, esi
push eax
lea ecx, [ebp - 0x50]
call fcn.0041467f
test eax, eax
jne 0x413ea9
call fcn.00404eaa
push dword [ebp - 0x68]
call fcn.0042751c
pop ecx
jmp 0x413e13
lea esi, [ebp - 0x68]
call fcn.00404eaa
push dword [ebp - 0x68]
call fcn.0042751c
mov esi, dword [ebp + 0xc]
pop ecx
test esi, esi
je 0x413edc
mov eax, esi
call fcn.00413b38
test eax, eax
je 0x413edc
push esi
lea eax, [ebp - 0x38]
push eax
lea ebx, [ebp - 0x50]
call fcn.0041493f
mov ebx, dword [ebp - 4]
mov eax, dword [ebp - 0x28]
sub eax, dword [ebp - 0x2c]
test eax, 0xfffffffc
jne 0x413f35
xor edi, edi
cmp dword [ebp - 0x18], edi
je 0x413efb
cmp dword [ebp - 0x14], edi
je 0x413efb
push dword [ebp - 0x10]
call dword [ebp - 0x1c]
lea eax, [ebx - 0x10]
call fcn.00406e8b
push dword [ebp - 8]
call fcn.004278ad
pop ecx
lea esi, [ebp - 0x38]
call fcn.00404eaa
push dword [ebp - 0x38]
call fcn.0042751c
pop ecx
lea esi, [ebp - 0x50]
call fcn.00404eaa
push dword [ebp - 0x50]
call fcn.0042751c
pop ecx
mov eax, edi
jmp 0x413d44
lea esi, [ebp - 0x84]
call fcn.00404d28
mov eax, dword [0x453c6c]
mov ecx, 0x453c6c
call dword [eax + 0xc]
mov esi, eax
add esi, 0x10
cmp dword [ebp + 0xc], 0
mov dword [ebp - 0xc], esi
je 0x413f6a
push dword [ebp + 0xc]
lea eax, [ebp - 0xc]
push eax
call fcn.00406e04
mov esi, dword [ebp - 0xc]
mov eax, dword [ebp - 0x28]
sub eax, dword [ebp - 0x2c]
and dword [ebp + 0xc], 0
sar eax, 2
test eax, eax
jbe 0x413fca
lea ebx, [ebp - 0x6c]
call fcn.00413ad9
lea eax, [ebp - 0xc]
lea edi, [ebp - 0x68]
call int.004069e7
mov edi, dword [ebp + 0xc]
lea esi, [ebp - 0x38]
call fcn.0040cc70
mov edi, ebx
call int.004069e7
mov eax, ebx
push eax
lea esi, [ebp - 0x84]
call fcn.00416168
call fcn.00414002
mov eax, dword [ebp - 0x28]
sub eax, dword [ebp - 0x2c]
inc dword [ebp + 0xc]
sar eax, 2
cmp dword [ebp + 0xc], eax
jb 0x413f7b
mov esi, dword [ebp - 0xc]
mov ebx, dword [ebp - 4]
mov ecx, dword [ebp + 8]
push 2
lea edx, [ebp - 0x84]
call fcn.0041345b
mov edi, eax
lea eax, [esi - 0x10]
call fcn.00406e8b
lea esi, [ebp - 0x84]
call fcn.0041612e
cmp dword [ebp - 0x18], 0
je 0x413efb
cmp dword [ebp - 0x14], 0
jmp 0x413ef3