Function at 0x1000650d
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
push 0x200
push 0x10148390
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0x1009a168
push 0x10148390
call fcn.1001bc40
add esp, 8
mov dword [0x10144f70], 0
jmp 0x1000654d
inc dword [0x10144f70]
cmp dword [0x10144f70], 0x3000
jge 0x1000657a
mov eax, dword [0x10144f70]
mov byte [eax + 0x101487b0], 0
mov eax, dword [0x10144f70]
mov byte [eax + 0x10144f80], 0
jmp 0x10006547
lea eax, [ebp - 4]
push eax
push 0x10144f80
push 0x10148390
call fcn.10009a07
add esp, 0xc
cmp eax, 0xffffffff
jne 0x100065a3
mov eax, 0xffffffff
jmp 0x100067b1
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push 0x10144f80
push 0x1009a174
call fcn.100073c8
add esp, 0x10
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x100065d1
xor eax, eax
jmp 0x100067b1
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 4]
push eax
push 0x10144f80
push 0x1009a180
call fcn.100073c8
add esp, 0x10
test eax, eax
jne 0x100066ca
mov ebx, dword [ebp - 4]
and ebx, 0xffff
mov eax, dword [ebp - 0xc]
and eax, 0xffff
sub ebx, eax
push 0x1009a188
call fcn.1001bd20
add esp, 4
add ebx, eax
push ebx
push 0x1009a194
call fcn.1001bd20
add esp, 4
mov ecx, dword [ebp - 0x1c]
add ecx, eax
push ecx
push 0x101487b0
call fcn.1001c290
add esp, 0xc
push 0x1009a1a0
call fcn.1001bd20
add esp, 4
mov ecx, dword [ebp - 4]
and ecx, 0xffff
mov edx, dword [ebp - 0xc]
and edx, 0xffff
sub ecx, edx
add eax, ecx
push eax
push 0x101487b0
push 0x1009a1ac
call fcn.1001bd20
add esp, 4
mov ecx, dword [ebp - 0x1c]
add ecx, eax
push ecx
call fcn.1001c290
add esp, 0xc
push 0x1009a1b4
call fcn.1001bd20
add esp, 4
push eax
push 0x1009a1bc
mov eax, dword [ebp - 0x1c]
push eax
call fcn.1001c290
add esp, 0xc
push 0x1009a1c4
call fcn.1001bd20
add esp, 4
mov ecx, dword [ebp - 4]
and ecx, 0xffff
lea ebx, [ecx + eax]
push 0x1009a1cc
call fcn.1001bd20
add esp, 4
sub ebx, eax
mov word [ebp - 4], bx
jmp 0x10006790
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
and eax, 0xffff
mov ecx, dword [ebp - 0xc]
and ecx, 0xffff
sub eax, ecx
dec eax
push eax
mov eax, dword [ebp - 0x1c]
inc eax
push eax
push 0x1009a1d8
call fcn.100073c8
add esp, 0x10
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x10006781
mov eax, dword [ebp - 4]
and eax, 0xffff
mov ecx, dword [ebp - 0xc]
and ecx, 0xffff
sub eax, ecx
mov ecx, dword [ebp - 8]
and ecx, 0xffff
sub eax, ecx
dec eax
push eax
mov eax, dword [ebp - 0x10]
push eax
push 0x101487b0
call fcn.1001c290
add esp, 0xc
mov eax, dword [ebp - 4]
and eax, 0xffff
mov ecx, dword [ebp - 0xc]
and ecx, 0xffff
sub eax, ecx
mov ecx, dword [ebp - 8]
and ecx, 0xffff
sub eax, ecx
dec eax
push eax
push 0x101487b0
mov eax, dword [ebp - 0x1c]
push eax
call fcn.1001c290
add esp, 0xc
mov eax, dword [ebp - 4]
and eax, 0xffff
mov ecx, dword [ebp - 8]
and ecx, 0xffff
inc ecx
sub eax, ecx
mov word [ebp - 4], ax
jmp 0x10006790
mov eax, dword [ebp - 0xc]
and eax, 0xffff
sub eax, 2
mov word [ebp - 4], ax
lea eax, [ebp - 4]
push eax
push 0x10144f80
push 0x10148390
call fcn.10009b50
add esp, 0xc
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
jmp 0x100067b1
pop edi
pop esi
pop ebx
leave
ret