Function at 0x4071a1
Capabilities:
Get common file path
Query environment variable

Disassembly:
mov eax, 0x42029d
call fcn.00412d4c
mov eax, 0x8260
call fcn.004155e0
push ebx
xor ebx, ebx
mov dword [ebp - 0x10], ebx
push esi
xor eax, eax
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
push edi
mov dword [ebp - 0x20], 7
mov dword [ebp - 0x24], ebx
mov word [ebp - 0x34], ax
mov dword [ebp - 4], 1
mov eax, dword [ebp + 0x10]
cmp dword [eax + 0x10], ebx
je 0x4071f0
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0x34]
call fcn.00406e18
jmp 0x407231
lea eax, [ebp - 0x26c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x407231
cmp word [ebp - 0x26c], 0
jne 0x407214
mov eax, ebx
jmp 0x407221
lea eax, [ebp - 0x26c]
push eax
call fcn.0041524d
pop ecx
push eax
lea eax, [ebp - 0x26c]
push eax
lea ecx, [ebp - 0x34]
call fcn.00406ec7
mov esi, 0x4242c0
push esi
call fcn.0041524d
mov edi, dword [ebp + 0xc]
pop ecx
push eax
push ebx
push esi
mov ecx, edi
call fcn.00406fea
cmp eax, 0xffffffff
je 0x4072e4
call fcn.004075ac
cmp eax, 3
jae 0x407272
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventA]
test eax, eax
je 0x407272
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [edi + 0x14]
cmp eax, 8
jb 0x40727e
mov ecx, dword [edi]
jmp 0x407280
mov ecx, edi
cmp word [ecx], 0x2f
je 0x4072d9
cmp eax, 8
jb 0x40728f
mov ecx, dword [edi]
jmp 0x407291
mov ecx, edi
cmp word [ecx], 0x5c
je 0x4072d9
cmp eax, 8
jb 0x4072a0
mov ecx, dword [edi]
jmp 0x4072a2
mov ecx, edi
cmp word [ecx], bx
je 0x4072b9
cmp eax, 8
jb 0x4072b0
mov eax, dword [edi]
jmp 0x4072b2
mov eax, edi
cmp word [eax + 2], 0x3a
je 0x4072d9
lea eax, [ebp - 0x34]
push eax
push edi
push dword [ebp + 8]
call fcn.00407056
add esp, 0xc
xor eax, eax
inc eax
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], bl
push ebx
push eax
jmp 0x407484
mov ecx, dword [ebp + 8]
push edi
call fcn.004069ca
jmp 0x4072c9
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov byte [ebp - 4], 2
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x1c]
call fcn.0040753f
xor eax, eax
push 0x7ffe
mov word [ebp - 0x826c], ax
lea eax, [ebp - 0x826a]
push ebx
push eax
call fcn.00412430
add esp, 0xc
lea ebx, [ebp - 0x826c]
push 0x4000
mov eax, ebx
push eax
push 0x4242c8
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x4073a8
push 0x3b
mov eax, ebx
push eax
jmp 0x407372
mov ecx, esi
sub ecx, ebx
sar ecx, 1
push ecx
push ebx
lea ecx, [ebp - 0x64]
call fcn.00406a15
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x1c]
call fcn.004074d2
mov byte [ebp - 4], 2
push 0
push 1
lea ecx, [ebp - 0x64]
call fcn.00401bbb
lea ebx, [esi + 2]
push 0x3b
push ebx
call fcn.0041519f
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x40733f
push ebx
lea ecx, [ebp - 0x4c]
call fcn.004069f1
mov byte [ebp - 4], 4
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x1c]
call fcn.004074d2
mov byte [ebp - 4], 2
push 0
push 1
lea ecx, [ebp - 0x4c]
call fcn.00401bbb
mov esi, dword [ebp - 0x1c]
jmp 0x407457
cmp dword [esi + 0x10], 0
je 0x407454
cmp dword [edi + 0x14], 8
jb 0x4073c4
mov ecx, dword [edi]
jmp 0x4073c6
mov ecx, edi
cmp dword [esi + 0x14], 8
jb 0x4073d0
mov eax, dword [esi]
jmp 0x4073d2
mov eax, esi
push ecx
push eax
lea eax, [ebp - 0x4c]
push str._s_s
push eax
call fcn.00407605
add esp, 0x10
mov byte [ebp - 4], 5
cmp dword [ebp - 0x38], 8
lea eax, [ebp - 0x4c]
cmovae eax, dword [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x64]
call fcn.004069f1
mov byte [ebp - 4], 6
lea eax, [ebp - 0x64]
push 0
push eax
call fcn.00407765
pop ecx
pop ecx
mov bl, al
mov byte [ebp - 4], 5
push 0
push 1
lea ecx, [ebp - 0x64]
call fcn.00401bbb
test bl, bl
jne 0x40749e
call fcn.004075ac
cmp eax, 3
jae 0x407444
push str.373373
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
test eax, eax
je 0x407444
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov byte [ebp - 4], 2
push 0
push 1
lea ecx, [ebp - 0x4c]
call fcn.00401bbb
add esi, 0x18
cmp esi, dword [ebp - 0x18]
jne 0x4073b0
mov ecx, dword [ebp + 8]
push edi
call fcn.004069ca
mov dword [ebp - 0x10], 1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call fcn.00406df0
mov byte [ebp - 4], 0
push 0
push 1
lea ecx, [ebp - 0x34]
call fcn.00401bbb
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x4c]
push eax
call fcn.004069a6
xor eax, eax
inc eax
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 2
xor ebx, ebx
push ebx
push eax
lea ecx, [ebp - 0x4c]
call fcn.00401bbb
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call fcn.00406df0
mov byte [ebp - 4], bl
push ebx
jmp 0x407482