Function at 0x407ccb
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
push 0x200
push 0x5a6060
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x4a13ec
push 0x5a2f60
call fcn.0041bfa0
add esp, 8
push 0x5a6060
push 0x5a2f60
call fcn.0041bfb0
add esp, 8
push 0x4a13f4
push 0x5a2f60
call fcn.0041bfb0
add esp, 8
push 0x4a13f8
push 0x5a2f60
call fcn.0041bfb0
add esp, 8
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp + 0xc]
mov ax, word [eax]
push eax
mov eax, dword [ebp + 8]
push eax
push 0x5a2f60
call fcn.00407518
add esp, 0x10
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x407e16
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp + 0xc]
mov ax, word [eax]
push eax
mov eax, dword [ebp + 8]
push eax
push 0x4a1408
call fcn.00407518
add esp, 0x10
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x407d95
push 0x80002
call fcn.0040435c
add esp, 4
mov eax, 0xffffffff
jmp 0x407fc1
push 0x5a2f60
mov eax, dword [ebp + 0xc]
xor ebx, ebx
mov bx, word [eax]
mov eax, dword [ebp - 8]
and eax, 0xffff
sub ebx, eax
push 0x4a1414
call fcn.0041bdf0
add esp, 4
sub ebx, eax
sub ebx, 2
push ebx
push 0x4a1420
call fcn.0041bdf0
add esp, 4
mov ecx, dword [ebp - 0x14]
add ecx, eax
add ecx, 2
push ecx
call fcn.0040834b
add esp, 0xc
mov word [ebp - 4], ax
mov eax, dword [ebp - 4]
and eax, 0xffff
cmp eax, 0xffff
jne 0x407dfe
mov eax, 0xffffffff
jmp 0x407fc1
mov eax, dword [ebp + 0xc]
xor ecx, ecx
mov cx, word [eax]
mov eax, dword [ebp - 4]
and eax, 0xffff
add ecx, eax
mov eax, dword [ebp + 0xc]
mov word [eax], cx
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp + 0xc]
mov ax, word [eax]
push eax
mov eax, dword [ebp + 8]
push eax
push 0x4a142c
call fcn.00407518
add esp, 0x10
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x407f36
push 0x4a1168
push 0
mov eax, dword [ebp + 0xc]
xor ecx, ecx
mov cx, word [eax]
add ecx, dword [ebp + 8]
sub ecx, 3
push ecx
call fcn.0040834b
add esp, 0xc
mov word [ebp - 4], ax
mov eax, dword [ebp - 4]
and eax, 0xffff
cmp eax, 0xffff
jne 0x407e7e
mov eax, 0xffffffff
jmp 0x407fc1
mov eax, dword [ebp + 0xc]
xor ecx, ecx
mov cx, word [eax]
add ecx, 2
mov eax, dword [ebp + 0xc]
mov word [eax], cx
push 0x4a1168
push 0
mov eax, dword [ebp + 0xc]
xor ecx, ecx
mov cx, word [eax]
add ecx, dword [ebp + 8]
sub ecx, 3
push ecx
call fcn.0040834b
add esp, 0xc
mov word [ebp - 4], ax
mov eax, dword [ebp - 4]
and eax, 0xffff
cmp eax, 0xffff
jne 0x407ece
mov eax, 0xffffffff
jmp 0x407fc1
mov eax, dword [ebp + 0xc]
xor ecx, ecx
mov cx, word [eax]
add ecx, 2
mov eax, dword [ebp + 0xc]
mov word [eax], cx
push 0x4a1438
push 0
mov eax, dword [ebp + 0xc]
xor ecx, ecx
mov cx, word [eax]
add ecx, dword [ebp + 8]
sub ecx, 3
push ecx
call fcn.0040834b
add esp, 0xc
mov word [ebp - 4], ax
mov eax, dword [ebp - 4]
and eax, 0xffff
cmp eax, 0xffff
jne 0x407f1e
mov eax, 0xffffffff
jmp 0x407fc1
mov eax, dword [ebp + 0xc]
xor ecx, ecx
mov cx, word [eax]
mov eax, dword [ebp - 4]
and eax, 0xffff
add ecx, eax
mov eax, dword [ebp + 0xc]
mov word [eax], cx
push 0x4a1444
push 0x5a98d0
call fcn.0041c3a0
add esp, 8
test eax, eax
jl 0x407fba
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp + 0xc]
mov ax, word [eax]
push eax
mov eax, dword [ebp + 8]
push eax
push 0x4a144c
call fcn.00407518
add esp, 0x10
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x407fba
inc dword [ebp - 0x10]
push 0x4a1454
call fcn.0041bdf0
add esp, 4
push eax
push 0x4a145c
mov eax, dword [ebp - 0x10]
push eax
call fcn.0041c9f0
add esp, 0xc
test eax, eax
jne 0x407f79
push 0x4a1464
call fcn.0041bdf0
add esp, 4
inc eax
add dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov byte [eax], 0x32
xor eax, eax
jmp 0x407fc1
pop edi
pop esi
pop ebx
leave
ret