Function at 0x10018315
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007162d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0xb4
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
movzx eax, byte [ebp + 0x10]
test eax, eax
je 0x100186b6
lea eax, [ebp + 0x18]
mov dword [ebp - 0xac], eax
mov dword [ebp - 0x58], 0x14cf
mov dword [ebp - 0x68], 0x10009764
cmp dword [ebp - 0x58], 0x1821
jle 0x1001843a
push 0x187b
push 0
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
and dword [ebp - 0x24], 0
jmp 0x10018384
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0x6550
jge 0x1001843a
and dword [ebp - 0x1c], 0
jmp 0x1001839e
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0x2e4b
jge 0x10018435
and dword [ebp - 0x28], 0
jmp 0x100183b8
mov eax, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0xd47
jge 0x10018430
and dword [ebp - 0x20], 0
jmp 0x100183ce
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x367e
jge 0x1001842e
mov eax, dword [ebp - 0x24]
cdq
idiv dword [ebp - 0x1c]
imul edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x20]
sar edx, cl
mov eax, edx
cdq
mov dword [ebp - 0xa8], eax
mov dword [ebp - 0xa4], edx
push dword [ebp - 0xa4]
push dword [ebp - 0xa8]
lea ecx, [ebp - 0xc4]
call fcn.1000bb70
pop ecx
pop ecx
mov dword [ebp - 0x60], eax
mov ecx, dword [ebp - 0x60]
call fcn.10024878
push eax
call fcn.100594e6
pop ecx
lea ecx, [ebp - 0xc4]
call fcn.1002486e
jmp 0x100183c7
jmp 0x100183b1
jmp 0x10018397
jmp 0x1001837d
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x90], eax
and dword [ebp - 4], 0
cmp dword [ebp - 0x58], 0x12a1
jge 0x10018459
push dword [ebp - 0x68]
call fcn.100594e6
pop ecx
jmp 0x10018475
or dword [ebp - 4], 0xffffffff
jmp 0x1001847f
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0x98], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0xa0], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp + 0x2c]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0xac]
movzx eax, byte [eax]
test eax, eax
je 0x1001869b
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x88], eax
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0xa0]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0x84], eax
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0x30], eax
push 0
mov ecx, dword [ebp - 0x18]
call fcn.10024a2b
cmp dword [eax], 0
jne 0x10018530
push 0xfffffffffffffff9
pop eax
test eax, eax
jne 0x10018530
and dword [ebp - 0x4c], 0
jmp 0x10018537
mov dword [ebp - 0x4c], 1
mov eax, dword [ebp - 0x2c]
mov esi, dword [eax]
push 3
mov ecx, dword [ebp - 0x14]
call fcn.10024a2b
mov dword [eax], esi
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 0x2c]
mov dword [ecx], eax
push 1
mov ecx, dword [ebp - 0x18]
call fcn.10024a2b
push 0
mov ecx, dword [ebp - 0x18]
call fcn.10024a2b
push 3
mov ecx, dword [ebp - 0x14]
call fcn.10024a2b
mov esi, eax
push 3
mov ecx, dword [ebp - 0x14]
call fcn.10024a2b
mov ecx, dword [esi]
cmp ecx, dword [eax]
jl 0x1001858c
mov dword [ebp - 0x34], 1
jmp 0x10018590
and dword [ebp - 0x34], 0
push 0
mov ecx, dword [ebp - 0x14]
call fcn.10024a2b
mov ecx, dword [ebp - 0x34]
cmp ecx, dword [eax]
je 0x100185aa
mov dword [ebp - 0x40], 1
jmp 0x100185ae
and dword [ebp - 0x40], 0
mov eax, dword [ebp - 0x30]
mov eax, dword [eax]
cmp dword [ebp - 0x40], eax
jle 0x100185c1
mov dword [ebp - 0x50], 1
jmp 0x100185c5
and dword [ebp - 0x50], 0
push 1
mov ecx, dword [ebp - 0x18]
call fcn.10024a2b
mov ecx, dword [ebp - 0x50]
cmp ecx, dword [eax]
jne 0x100185df
mov dword [ebp - 0x48], 1
jmp 0x100185e3
and dword [ebp - 0x48], 0
push 0
mov ecx, dword [ebp - 0x14]
call fcn.10024a2b
mov ecx, dword [ebp - 0x48]
sub ecx, dword [eax]
jne 0x10018609
push 3
mov ecx, dword [ebp - 0x14]
call fcn.10024a2b
cmp dword [eax], 0
jne 0x10018609
and dword [ebp - 0x38], 0
jmp 0x10018610
mov dword [ebp - 0x38], 1
push 3
mov ecx, dword [ebp - 0x14]
call fcn.10024a2b
mov ecx, dword [ebp - 0x38]
imul ecx, dword [eax]
mov eax, dword [ebp - 0x30]
mov dword [eax], ecx
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x30]
mov ecx, dword [ecx]
mov dword [eax], ecx
mov eax, dword [ebp - 0x3c]
mov esi, dword [eax]
push 0
mov ecx, dword [ebp - 0x18]
call fcn.10024a2b
cmp dword [eax], esi
jg 0x1001864b
mov dword [ebp - 0x44], 1
jmp 0x1001864f
and dword [ebp - 0x44], 0
push 3
mov ecx, dword [ebp - 0x14]
call fcn.10024a2b
mov eax, dword [eax]
cmp eax, dword [ebp - 0x44]
jle 0x10018669
mov dword [ebp - 0x54], 1
jmp 0x1001866d
and dword [ebp - 0x54], 0
mov eax, dword [ebp - 0x4c]
cmp eax, dword [ebp - 0x54]
jle 0x1001867e
mov dword [ebp - 0x5c], 1
jmp 0x10018682
and dword [ebp - 0x5c], 0
push 1
mov ecx, dword [ebp - 0x18]
call fcn.10024a2b
mov ecx, dword [ebp - 0x5c]
sub ecx, dword [eax]
mov eax, dword [ebp - 0x8c]
mov dword [eax], ecx
jmp 0x100186b4
push 0
push 0x7c
push 0x2605
push 0x718
push 0x952
call dword [sym.imp.USER32.dll_SetScrollRange]
jmp 0x100186e8
mov eax, dword [ebp + 8]
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x94], eax
push 1
push dword [ebp - 0x94]
push 0x5e87
push 0x53a0
push dword [ebp - 0x9c]
call fcn.1000bba8
add esp, 0x14
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret