Function at 0x1001250d
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
movzx eax, byte [ebp + 0x10]
test eax, eax
je 0x1001252d
push 0x1105
push 0
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
jmp 0x100126e5
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0xc]
mov dword [eax], 0x85faafe3
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx]
cmp dword [eax], ecx
je 0x10012597
mov dword [ebp - 0x10], 1
jmp 0x1001259b
and dword [ebp - 0x10], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax]
cmp dword [ebp - 0x10], eax
jl 0x100125b3
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x100125b3
and dword [ebp - 0x14], 0
jmp 0x100125ba
mov dword [ebp - 0x14], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx]
cmp dword [eax], ecx
jge 0x100125d4
mov dword [ebp - 0x18], 1
jmp 0x100125d8
and dword [ebp - 0x18], 0
imul eax, dword [ebp - 0x18], 0x78ef
sub eax, 0xffff
cmp eax, 2
je 0x100125f2
mov dword [ebp - 0x1c], 1
jmp 0x100125f6
and dword [ebp - 0x1c], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax]
cmp dword [ebp - 0x1c], eax
jle 0x10012609
mov dword [ebp - 0x20], 1
jmp 0x1001260d
and dword [ebp - 0x20], 0
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
cmp dword [ebp - 0x20], eax
je 0x10012620
mov dword [ebp - 0x24], 1
jmp 0x10012624
and dword [ebp - 0x24], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax]
cmp dword [ebp - 0x24], eax
jne 0x10012637
mov dword [ebp - 0x28], 1
jmp 0x1001263b
and dword [ebp - 0x28], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax]
cmp eax, dword [ebp - 0x28]
je 0x1001264e
mov dword [ebp - 0x2c], 1
jmp 0x10012652
and dword [ebp - 0x2c], 0
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
add eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 8]
cmp eax, dword [ecx]
jge 0x1001266a
mov dword [ebp - 0x30], 1
jmp 0x1001266e
and dword [ebp - 0x30], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax]
add eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 4]
imul eax, dword [ecx]
mov ecx, dword [ebp - 0x54]
cmp eax, dword [ecx]
jl 0x1001268c
mov dword [ebp - 0x34], 1
jmp 0x10012690
and dword [ebp - 0x34], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax]
cmp dword [ebp - 0x34], eax
jg 0x100126a5
or eax, 0xffffffff
jne 0x100126a5
and dword [ebp - 0x38], 0
jmp 0x100126ac
mov dword [ebp - 0x38], 1
mov eax, dword [ebp - 0x38]
neg eax
mov ecx, dword [ebp - 8]
mov dword [ecx], eax
mov eax, dword [ebp - 8]
cmp dword [eax], 0x1af6658d
jne 0x100126cf
or eax, 0xffffffff
je 0x100126cf
mov dword [ebp - 0x3c], 1
jmp 0x100126d3
and dword [ebp - 0x3c], 0
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x3c]
mov dword [eax], ecx
mov eax, dword [ebp - 0x58]
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx]
mov dword [eax], ecx
mov esp, ebp
pop ebp
ret