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

Disassembly:
mov eax, 0x42012d
call fcn.00412bcc
mov eax, 0x8674
call fcn.00413020
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 0x407069
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0x34]
call fcn.00406c91
jmp 0x4070aa
lea eax, [ebp - 0x26c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x4070aa
cmp word [ebp - 0x26c], 0
jne 0x40708d
mov eax, ebx
jmp 0x40709a
lea eax, [ebp - 0x26c]
push eax
call fcn.004150fd
pop ecx
push eax
lea eax, [ebp - 0x26c]
push eax
lea ecx, [ebp - 0x34]
call fcn.00406d40
mov esi, 0x4242bc
push esi
call fcn.004150fd
mov edi, dword [ebp + 0xc]
pop ecx
push eax
push ebx
push esi
mov ecx, edi
call fcn.00406e63
cmp eax, 0xffffffff
je 0x40713a
mov eax, dword [edi + 0x14]
cmp eax, 8
jb 0x4070d4
mov ecx, dword [edi]
jmp 0x4070d6
mov ecx, edi
cmp word [ecx], 0x2f
je 0x40712f
cmp eax, 8
jb 0x4070e5
mov ecx, dword [edi]
jmp 0x4070e7
mov ecx, edi
cmp word [ecx], 0x5c
je 0x40712f
cmp eax, 8
jb 0x4070f6
mov ecx, dword [edi]
jmp 0x4070f8
mov ecx, edi
cmp word [ecx], bx
je 0x40710f
cmp eax, 8
jb 0x407106
mov eax, dword [edi]
jmp 0x407108
mov eax, edi
cmp word [eax + 2], 0x3a
je 0x40712f
lea eax, [ebp - 0x34]
push eax
push edi
push dword [ebp + 8]
call fcn.00406ecf
add esp, 0xc
xor eax, eax
inc eax
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], bl
push ebx
push eax
jmp 0x4072f5
mov ecx, dword [ebp + 8]
push edi
call fcn.00406873
jmp 0x40711f
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.004073b0
xor eax, eax
push 0x7ffe
mov word [ebp - 0x8680], ax
lea eax, [ebp - 0x867e]
push ebx
push eax
call fcn.004122b0
add esp, 0xc
lea ebx, [ebp - 0x8680]
push 0x4000
mov eax, ebx
push eax
push 0x4242c4
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov esi, eax
call fcn.0040741d
cmp eax, 3
jae 0x4071a5
push str.Global399
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
test esi, esi
je 0x40721d
push 0x3b
lea eax, [ebp - 0x8680]
push eax
jmp 0x4071e7
mov ecx, esi
sub ecx, ebx
sar ecx, 1
push ecx
push ebx
lea ecx, [ebp - 0x64]
call fcn.004068be
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x1c]
call fcn.00407343
mov byte [ebp - 4], 2
push 0
push 1
lea ecx, [ebp - 0x64]
call fcn.00401afa
lea ebx, [esi + 2]
push 0x3b
push ebx
call fcn.0041504f
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x4071b4
push ebx
lea ecx, [ebp - 0x4c]
call fcn.0040689a
mov byte [ebp - 4], 4
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00407343
mov byte [ebp - 4], 2
push 0
push 1
lea ecx, [ebp - 0x4c]
call fcn.00401afa
mov esi, dword [ebp - 0x1c]
jmp 0x4072c8
cmp dword [esi + 0x10], 0
je 0x4072c5
cmp dword [edi + 0x14], 8
jb 0x407239
mov ecx, dword [edi]
jmp 0x40723b
mov ecx, edi
cmp dword [esi + 0x14], 8
jb 0x407245
mov eax, dword [esi]
jmp 0x407247
mov eax, esi
push ecx
push eax
lea eax, [ebp - 0x4c]
push str._s_s
push eax
call fcn.00407476
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.0040689a
mov byte [ebp - 4], 6
lea eax, [ebp - 0x64]
push 0
push eax
call fcn.004075b2
pop ecx
pop ecx
mov bl, al
mov byte [ebp - 4], 5
push 0
push 1
lea ecx, [ebp - 0x64]
call fcn.00401afa
test bl, bl
jne 0x40730f
call fcn.0040741d
cmp eax, 3
jae 0x4072b5
lea eax, [ebp - 0x680]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov byte [ebp - 4], 2
push 0
push 1
lea ecx, [ebp - 0x4c]
call fcn.00401afa
add esi, 0x18
cmp esi, dword [ebp - 0x18]
jne 0x407225
mov ecx, dword [ebp + 8]
push edi
call fcn.00406873
mov dword [ebp - 0x10], 1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call fcn.00406c69
mov byte [ebp - 4], 0
push 0
push 1
lea ecx, [ebp - 0x34]
call fcn.00401afa
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.0040684f
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.00401afa
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call fcn.00406c69
mov byte [ebp - 4], bl
push ebx
jmp 0x4072f3