Function at 0x409d8b
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
push 0x200
push 0x4308d0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x4a01fc
push 0x42d7e0
call fcn.0041d13c
add esp, 8
push 0x4308d0
push 0x42d7e0
call fcn.0041d138
add esp, 8
push 0x4a0204
push 0x42d7e0
call fcn.0041d138
add esp, 8
push 0x4a0208
push 0x42d7e0
call fcn.0041d138
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 0x42d7e0
call fcn.004095d8
add esp, 0x10
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x409ed6
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 0x4a0218
call fcn.004095d8
add esp, 0x10
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x409e55
push 0x80002
call fcn.004064f2
add esp, 4
mov eax, 0xffffffff
jmp 0x40a081
push 0x42d7e0
mov eax, dword [ebp + 0xc]
xor ebx, ebx
mov bx, word [eax]
mov eax, dword [ebp - 8]
and eax, 0xffff
sub ebx, eax
push 0x4a0224
call fcn.0041d0c4
add esp, 4
sub ebx, eax
sub ebx, 2
push ebx
push 0x4a0230
call fcn.0041d0c4
add esp, 4
mov ecx, dword [ebp - 0x14]
add ecx, eax
add ecx, 2
push ecx
call fcn.0040a40b
add esp, 0xc
mov word [ebp - 4], ax
mov eax, dword [ebp - 4]
and eax, 0xffff
cmp eax, 0xffff
jne 0x409ebe
mov eax, 0xffffffff
jmp 0x40a081
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 0x4a023c
call fcn.004095d8
add esp, 0x10
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x409ff6
push 0x49ff78
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.0040a40b
add esp, 0xc
mov word [ebp - 4], ax
mov eax, dword [ebp - 4]
and eax, 0xffff
cmp eax, 0xffff
jne 0x409f3e
mov eax, 0xffffffff
jmp 0x40a081
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 0x49ff78
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.0040a40b
add esp, 0xc
mov word [ebp - 4], ax
mov eax, dword [ebp - 4]
and eax, 0xffff
cmp eax, 0xffff
jne 0x409f8e
mov eax, 0xffffffff
jmp 0x40a081
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 0x4a0248
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.0040a40b
add esp, 0xc
mov word [ebp - 4], ax
mov eax, dword [ebp - 4]
and eax, 0xffff
cmp eax, 0xffff
jne 0x409fde
mov eax, 0xffffffff
jmp 0x40a081
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 0x4a0254
push 0x434110
call fcn.0041d434
add esp, 8
test eax, eax
jl 0x40a07a
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 0x4a025c
call fcn.004095d8
add esp, 0x10
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x40a07a
inc dword [ebp - 0x10]
push 0x4a0264
call fcn.0041d0c4
add esp, 4
push eax
push 0x4a026c
mov eax, dword [ebp - 0x10]
push eax
call fcn.0041d814
add esp, 0xc
test eax, eax
jne 0x40a039
push 0x4a0274
call fcn.0041d0c4
add esp, 4
inc eax
add dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov byte [eax], 0x32
xor eax, eax
jmp 0x40a081
pop edi
pop esi
pop ebx
leave
ret