Function at 0x4079ef
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x407a30
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x3c], eax
lea eax, [ebp + 0x28]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp + 0x2c]
mov dword [ebp - 0x30], eax
push 0
push dword [ebp - 0x3c]
mov eax, dword [ebp - 0x5c]
movzx eax, byte [eax]
push eax
push 1
push dword [ebp - 0x30]
call fcn.0040ba28
add esp, 0x14
jmp 0x407c47
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x4c], eax
push 4
lea ecx, [ebp - 0x68]
call fcn.0043557d
mov dword [ebp - 0xc], 0x8e9934b0
push 4
lea ecx, [ebp - 0x74]
call fcn.0043557d
mov dword [ebp - 4], 0
jmp 0x407a7f
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 4
jge 0x407a95
push dword [ebp - 4]
lea ecx, [ebp - 0x68]
call fcn.0043566b
or dword [eax], 0xffffffff
jmp 0x407a78
mov dword [ebp - 4], 0
jmp 0x407aa5
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 4
jge 0x407abe
push dword [ebp - 4]
lea ecx, [ebp - 0x74]
call fcn.0043566b
mov dword [eax], 0xa01c
jmp 0x407a9e
push 2
lea ecx, [ebp - 0x68]
call fcn.0043566b
and dword [eax], 0
jmp 0x407ae5
push 2
lea ecx, [ebp - 0x68]
call fcn.0043566b
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 0x18]
mov dword [ecx], eax
push 2
lea ecx, [ebp - 0x68]
call fcn.0043566b
cmp dword [eax], 0xd
jl 0x407b8e
mov dword [ebp - 0x20], 0xafbbd0a7
mov dword [ebp - 0x58], 0x89bdd777
mov dword [ebp - 0x10], 0
jmp 0x407b16
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 2
jge 0x407b2c
mov eax, dword [ebp - 0x10]
mov dword [ebp + eax*4 - 0x84], 0x5589b583
jmp 0x407b0f
mov dword [ebp - 0x20], 0
imul eax, dword [ebp - 0x20], 9
cmp eax, 1
jge 0x407b45
mov dword [ebp - 0x28], 1
jmp 0x407b49
and dword [ebp - 0x28], 0
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x78], eax
or eax, 0xffffffff
je 0x407b67
xor eax, eax
je 0x407b67
mov dword [ebp - 0x1c], 1
jmp 0x407b6b
and dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x1c]
neg eax
mov dword [ebp - 0x24], eax
push 4
pop eax
imul eax, eax, 0
mov ecx, dword [ebp - 0x24]
mov dword [ebp + eax - 0x84], ecx
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x58], eax
jmp 0x407acd
push 1
lea ecx, [ebp - 0x74]
call fcn.0043566b
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 0x14]
mov dword [ecx], eax
mov eax, dword [ebp - 0x14]
cmp dword [eax], 0
jne 0x407be1
mov dword [ebp - 0xc], 0
jmp 0x407bbe
mov eax, dword [ebp - 0xc]
dec eax
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xfffffff9
je 0x407bdf
mov byte [ebp - 5], 0
movzx eax, byte [ebp - 5]
test eax, eax
je 0x407bdd
push 0x15dd
push 0
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
jmp 0x407bb7
jmp 0x407c1b
mov dword [ebp - 0x44], 0xfffffffc
mov dword [ebp - 0x50], 0xfffffff8
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x7c], eax
push 0
lea ecx, [ebp - 0x74]
call fcn.0043566b
mov ecx, 0xfffa
sub ecx, dword [eax]
jne 0x407c11
mov dword [ebp - 0x2c], 1
jmp 0x407c15
and dword [ebp - 0x2c], 0
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x50], eax
lea ecx, [ebp - 0x74]
call fcn.0043564f
lea ecx, [ebp - 0x68]
call fcn.0043564f
push dword [ebp - 0x4c]
push dword [ebp - 0x54]
push dword [ebp - 0x34]
push dword [ebp - 0x38]
push dword [ebp - 0x40]
push 0
push dword [ebp - 0x48]
call fcn.00416d1e
add esp, 0x1c
mov esp, ebp
pop ebp
ret