Function at 0x410718
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
push 0x64
push 0x422c10
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0x4a8d80
push 0x422c10
call fcn.0041a84c
add esp, 8
push 1
push 0x3000
call fcn.0041addb
add esp, 8
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x410770
push 5
call fcn.004054a2
add esp, 4
mov eax, 0xffffffff
jmp 0x410a24
push 1
push 0x3000
call fcn.0041addb
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4107ac
mov eax, dword [ebp - 0x18]
push eax
call fcn.0041a905
add esp, 4
push 5
call fcn.004054a2
add esp, 4
mov eax, 0xffffffff
jmp 0x410a24
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
push 0x422c10
call fcn.004134c2
add esp, 0xc
cmp eax, 0xffffffff
jne 0x4107ec
mov eax, dword [ebp - 4]
push eax
call fcn.0041a905
add esp, 4
mov eax, dword [ebp - 0x18]
push eax
call fcn.0041a905
add esp, 4
mov eax, 0xffffffff
jmp 0x410a24
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
push 0x4a8d8c
call fcn.00410fe5
add esp, 0x10
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x410831
mov eax, dword [ebp - 4]
push eax
call fcn.0041a905
add esp, 4
mov eax, dword [ebp - 0x18]
push eax
call fcn.0041a905
add esp, 4
xor eax, eax
jmp 0x410a24
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
push 0x4a8d98
call fcn.00410fe5
add esp, 0x10
test eax, eax
jne 0x410928
push 0x4a8da0
call fcn.0041a7d8
add esp, 4
mov ecx, dword [ebp - 8]
and ecx, 0xffff
mov edx, dword [ebp - 0x10]
and edx, 0xffff
sub ecx, edx
add eax, ecx
push eax
push 0x4a8dac
call fcn.0041a7d8
add esp, 4
mov ecx, dword [ebp - 0x24]
add ecx, eax
push ecx
mov eax, dword [ebp - 0x18]
push eax
call fcn.0041b288
add esp, 0xc
push 0x4a8db8
call fcn.0041a7d8
add esp, 4
mov ecx, dword [ebp - 8]
and ecx, 0xffff
mov edx, dword [ebp - 0x10]
and edx, 0xffff
sub ecx, edx
add eax, ecx
push eax
mov eax, dword [ebp - 0x18]
push eax
push 0x4a8dc4
call fcn.0041a7d8
add esp, 4
mov ecx, dword [ebp - 0x24]
add ecx, eax
push ecx
call fcn.0041b288
add esp, 0xc
push 0x4a8dcc
call fcn.0041a7d8
add esp, 4
push eax
push 0x4a8dd4
mov eax, dword [ebp - 0x24]
push eax
call fcn.0041b288
add esp, 0xc
push 0x4a8ddc
call fcn.0041a7d8
add esp, 4
mov ecx, dword [ebp - 8]
and ecx, 0xffff
lea ebx, [ecx + eax]
push 0x4a8de4
call fcn.0041a7d8
add esp, 4
sub ebx, eax
mov word [ebp - 8], bx
jmp 0x4109ec
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
and eax, 0xffff
mov ecx, dword [ebp - 0x10]
and ecx, 0xffff
sub eax, ecx
dec eax
push eax
mov eax, dword [ebp - 0x24]
inc eax
push eax
push 0x4a8df0
call fcn.00410fe5
add esp, 0x10
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4109dd
mov eax, dword [ebp - 8]
and eax, 0xffff
mov ecx, dword [ebp - 0x10]
and ecx, 0xffff
sub eax, ecx
mov ecx, dword [ebp - 0xc]
and ecx, 0xffff
sub eax, ecx
dec eax
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
push eax
call fcn.0041b288
add esp, 0xc
mov eax, dword [ebp - 8]
and eax, 0xffff
mov ecx, dword [ebp - 0x10]
and ecx, 0xffff
sub eax, ecx
mov ecx, dword [ebp - 0xc]
and ecx, 0xffff
sub eax, ecx
dec eax
push eax
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x24]
push eax
call fcn.0041b288
add esp, 0xc
mov eax, dword [ebp - 8]
and eax, 0xffff
mov ecx, dword [ebp - 0xc]
and ecx, 0xffff
inc ecx
sub eax, ecx
mov word [ebp - 8], ax
jmp 0x4109ec
mov eax, dword [ebp - 0x10]
and eax, 0xffff
sub eax, 2
mov word [ebp - 8], ax
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
push 0x422c10
call fcn.00413610
add esp, 0xc
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 4]
push eax
call fcn.0041a905
add esp, 4
mov eax, dword [ebp - 0x18]
push eax
call fcn.0041a905
add esp, 4
mov eax, dword [ebp - 0x1c]
jmp 0x410a24
pop edi
pop esi
pop ebx
leave
ret