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

Disassembly:
mov eax, 0x423146
call fcn.00415c8c
mov eax, 0x8260
call fcn.00418520
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 0x407d5e
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0x34]
call fcn.00407986
jmp 0x407d9f
lea eax, [ebp - 0x26c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x407d9f
cmp word [ebp - 0x26c], 0
jne 0x407d82
mov eax, ebx
jmp 0x407d8f
lea eax, [ebp - 0x26c]
push eax
call fcn.0041818d
pop ecx
push eax
lea eax, [ebp - 0x26c]
push eax
lea ecx, [ebp - 0x34]
call fcn.00407a35
mov esi, 0x427064
push esi
call fcn.0041818d
mov edi, dword [ebp + 0xc]
pop ecx
push eax
push ebx
push esi
mov ecx, edi
call fcn.00407b58
cmp eax, 0xffffffff
je 0x407e2f
mov eax, dword [edi + 0x14]
cmp eax, 8
jb 0x407dc9
mov ecx, dword [edi]
jmp 0x407dcb
mov ecx, edi
cmp word [ecx], 0x2f
je 0x407e24
cmp eax, 8
jb 0x407dda
mov ecx, dword [edi]
jmp 0x407ddc
mov ecx, edi
cmp word [ecx], 0x5c
je 0x407e24
cmp eax, 8
jb 0x407deb
mov ecx, dword [edi]
jmp 0x407ded
mov ecx, edi
cmp word [ecx], bx
je 0x407e04
cmp eax, 8
jb 0x407dfb
mov eax, dword [edi]
jmp 0x407dfd
mov eax, edi
cmp word [eax + 2], 0x3a
je 0x407e24
lea eax, [ebp - 0x34]
push eax
push edi
push dword [ebp + 8]
call fcn.00407bc4
add esp, 0xc
xor eax, eax
inc eax
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], bl
push ebx
push eax
jmp 0x408016
mov ecx, dword [ebp + 8]
push edi
call fcn.00407538
jmp 0x407e14
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.004080d1
xor eax, eax
push 0x7ffe
mov word [ebp - 0x826c], ax
lea eax, [ebp - 0x826a]
push ebx
push eax
call fcn.00415370
add esp, 0xc
lea ebx, [ebp - 0x826c]
push 0x4000
mov eax, ebx
push eax
push 0x42706c
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x407ef3
push 0x3b
mov eax, ebx
push eax
jmp 0x407ebd
mov ecx, esi
sub ecx, ebx
sar ecx, 1
push ecx
push ebx
lea ecx, [ebp - 0x64]
call fcn.00407583
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x1c]
call fcn.00408064
mov byte [ebp - 4], 2
push 0
push 1
lea ecx, [ebp - 0x64]
call fcn.00401a93
lea ebx, [esi + 2]
push 0x3b
push ebx
call fcn.004180df
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x407e8a
push ebx
lea ecx, [ebp - 0x4c]
call fcn.0040755f
mov byte [ebp - 4], 4
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00408064
mov byte [ebp - 4], 2
push 0
push 1
lea ecx, [ebp - 0x4c]
call fcn.00401a93
mov edx, dword [0x430104]
mov esi, dword [ebp - 0x1c]
inc edx
mov ecx, 0x2fb
cmove edx, ecx
inc edx
mov ecx, 0x3da
cmove edx, ecx
shl edx, 2
or edx, 1
mov dword [0x430104], edx
cmp esi, dword [ebp - 0x18]
je 0x407ff2
mov ecx, dword [0x430100]
mov eax, ecx
not eax
and eax, 0x3b9
neg eax
sbb eax, eax
and eax, 0x80000000
add eax, 0x80000000
shr ecx, 1
or ecx, eax
or edx, 0x3ff
cmp dword [esi + 0x10], 0
mov dword [0x430100], ecx
mov dword [0x430104], edx
je 0x407fe6
cmp dword [edi + 0x14], 8
jb 0x407f6a
mov ecx, dword [edi]
jmp 0x407f6c
mov ecx, edi
cmp dword [esi + 0x14], 8
jb 0x407f76
mov eax, dword [esi]
jmp 0x407f78
mov eax, esi
push ecx
push eax
lea eax, [ebp - 0x4c]
push str._s_s
push eax
call fcn.00408179
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.0040755f
mov byte [ebp - 4], 6
lea eax, [ebp - 0x64]
push 0
push eax
call fcn.0040836c
pop ecx
pop ecx
mov bl, al
mov byte [ebp - 4], 5
push 0
push 1
lea ecx, [ebp - 0x64]
call fcn.00401a93
test bl, bl
jne 0x408030
mov byte [ebp - 4], 2
push 0
push 1
lea ecx, [ebp - 0x4c]
call fcn.00401a93
mov edx, dword [0x430104]
mov ecx, dword [0x430100]
add esi, 0x18
cmp esi, dword [ebp - 0x18]
jne 0x407f29
mov ecx, dword [ebp + 8]
push edi
call fcn.00407538
mov dword [ebp - 0x10], 1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call fcn.0040795e
mov byte [ebp - 4], 0
push 0
push 1
lea ecx, [ebp - 0x34]
call fcn.00401a93
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.00407514
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.00401a93
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call fcn.0040795e
mov byte [ebp - 4], bl
push ebx
jmp 0x408014