Function at 0x40a63b
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
push 0x200
push 0x5af760
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x4a5244
push 0x5ac660
call fcn.0041e930
add esp, 8
push 0x5af760
push 0x5ac660
call fcn.0041e940
add esp, 8
push 0x4a524c
push 0x5ac660
call fcn.0041e940
add esp, 8
push 0x4a5250
push 0x5ac660
call fcn.0041e940
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 0x5ac660
call fcn.00409e88
add esp, 0x10
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x40a786
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 0x4a5260
call fcn.00409e88
add esp, 0x10
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x40a705
push 0x80002
call fcn.00406ccc
add esp, 4
mov eax, 0xffffffff
jmp 0x40a931
push 0x5ac660
mov eax, dword [ebp + 0xc]
xor ebx, ebx
mov bx, word [eax]
mov eax, dword [ebp - 8]
and eax, 0xffff
sub ebx, eax
push 0x4a526c
call fcn.0041e7b0
add esp, 4
sub ebx, eax
sub ebx, 2
push ebx
push 0x4a5278
call fcn.0041e7b0
add esp, 4
mov ecx, dword [ebp - 0x14]
add ecx, eax
add ecx, 2
push ecx
call fcn.0040acbb
add esp, 0xc
mov word [ebp - 4], ax
mov eax, dword [ebp - 4]
and eax, 0xffff
cmp eax, 0xffff
jne 0x40a76e
mov eax, 0xffffffff
jmp 0x40a931
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 0x4a5284
call fcn.00409e88
add esp, 0x10
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x40a8a6
push 0x4a4fc0
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.0040acbb
add esp, 0xc
mov word [ebp - 4], ax
mov eax, dword [ebp - 4]
and eax, 0xffff
cmp eax, 0xffff
jne 0x40a7ee
mov eax, 0xffffffff
jmp 0x40a931
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 0x4a4fc0
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.0040acbb
add esp, 0xc
mov word [ebp - 4], ax
mov eax, dword [ebp - 4]
and eax, 0xffff
cmp eax, 0xffff
jne 0x40a83e
mov eax, 0xffffffff
jmp 0x40a931
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 0x4a5290
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.0040acbb
add esp, 0xc
mov word [ebp - 4], ax
mov eax, dword [ebp - 4]
and eax, 0xffff
cmp eax, 0xffff
jne 0x40a88e
mov eax, 0xffffffff
jmp 0x40a931
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 0x4a529c
push 0x5b2fd0
call fcn.0041efd0
add esp, 8
test eax, eax
jl 0x40a92a
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 0x4a52a4
call fcn.00409e88
add esp, 0x10
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x40a92a
inc dword [ebp - 0x10]
push 0x4a52ac
call fcn.0041e7b0
add esp, 4
push eax
push 0x4a52b4
mov eax, dword [ebp - 0x10]
push eax
call fcn.0041f560
add esp, 0xc
test eax, eax
jne 0x40a8e9
push 0x4a52bc
call fcn.0041e7b0
add esp, 4
inc eax
add dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov byte [eax], 0x32
xor eax, eax
jmp 0x40a931
pop edi
pop esi
pop ebx
leave
ret