Function at 0x40a67b
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
push 0x200
push 0x5c6440
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x4b45fc
push 0x5c3340
call fcn.004202d0
add esp, 8
push 0x5c6440
push 0x5c3340
call fcn.004202e0
add esp, 8
push 0x4b4604
push 0x5c3340
call fcn.004202e0
add esp, 8
push 0x4b4608
push 0x5c3340
call fcn.004202e0
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 0x5c3340
call fcn.00409ec8
add esp, 0x10
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x40a7c6
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 0x4b4618
call fcn.00409ec8
add esp, 0x10
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x40a745
push 0x80002
call fcn.00406ccc
add esp, 4
mov eax, 0xffffffff
jmp 0x40a971
push 0x5c3340
mov eax, dword [ebp + 0xc]
xor ebx, ebx
mov bx, word [eax]
mov eax, dword [ebp - 8]
and eax, 0xffff
sub ebx, eax
push 0x4b4624
call fcn.00420150
add esp, 4
sub ebx, eax
sub ebx, 2
push ebx
push 0x4b4630
call fcn.00420150
add esp, 4
mov ecx, dword [ebp - 0x14]
add ecx, eax
add ecx, 2
push ecx
call fcn.0040acfb
add esp, 0xc
mov word [ebp - 4], ax
mov eax, dword [ebp - 4]
and eax, 0xffff
cmp eax, 0xffff
jne 0x40a7ae
mov eax, 0xffffffff
jmp 0x40a971
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 0x4b463c
call fcn.00409ec8
add esp, 0x10
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x40a8e6
push 0x4b4378
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.0040acfb
add esp, 0xc
mov word [ebp - 4], ax
mov eax, dword [ebp - 4]
and eax, 0xffff
cmp eax, 0xffff
jne 0x40a82e
mov eax, 0xffffffff
jmp 0x40a971
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 0x4b4378
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.0040acfb
add esp, 0xc
mov word [ebp - 4], ax
mov eax, dword [ebp - 4]
and eax, 0xffff
cmp eax, 0xffff
jne 0x40a87e
mov eax, 0xffffffff
jmp 0x40a971
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 0x4b4648
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.0040acfb
add esp, 0xc
mov word [ebp - 4], ax
mov eax, dword [ebp - 4]
and eax, 0xffff
cmp eax, 0xffff
jne 0x40a8ce
mov eax, 0xffffffff
jmp 0x40a971
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 0x4b4654
push 0x5c9cb0
call fcn.00420970
add esp, 8
test eax, eax
jl 0x40a96a
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 0x4b465c
call fcn.00409ec8
add esp, 0x10
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x40a96a
inc dword [ebp - 0x10]
push 0x4b4664
call fcn.00420150
add esp, 4
push eax
push 0x4b466c
mov eax, dword [ebp - 0x10]
push eax
call fcn.00420f00
add esp, 0xc
test eax, eax
jne 0x40a929
push 0x4b4674
call fcn.00420150
add esp, 4
inc eax
add dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov byte [eax], 0x32
xor eax, eax
jmp 0x40a971
pop edi
pop esi
pop ebx
leave
ret