Function at 0x1001fd8a
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100737c3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x7c
push esi
movzx eax, byte [ebp + 0x18]
test eax, eax
je 0x1001fff5
mov dword [ebp - 0x24], 0x1c16
cmp dword [ebp - 0x24], 0x4f2
jge 0x1001ff7d
mov dword [ebp - 0x20], 0xd
lea ecx, [ebp - 0x70]
call fcn.10013541
and dword [ebp - 4], 0
push 0x1000b1b5
lea ecx, [ebp - 0x88]
call fcn.10013552
mov byte [ebp - 4], 1
lea edx, [ebp - 0x70]
mov ecx, 0x10663ef0
call fcn.1003bf00
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x18]
add ecx, dword [eax + 4]
call fcn.1000cddf
movzx eax, al
test eax, eax
je 0x1001ff62
lea ecx, [ebp - 0x88]
call fcn.1003b7d5
and dword [ebp - 0x10], 0
jmp 0x1001fe30
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x70]
call fcn.1001359f
dec eax
cmp dword [ebp - 0x10], eax
ja 0x1001ff41
push dword [ebp - 0x10]
lea ecx, [ebp - 0x70]
call fcn.1001358b
movsx eax, byte [eax]
push eax
call fcn.1005ae37
pop ecx
test eax, eax
jne 0x1001fe7c
push dword [ebp - 0x10]
lea ecx, [ebp - 0x70]
call fcn.1001358b
mov al, byte [eax]
movzx eax, al
push eax
lea ecx, [ebp - 0x88]
call fcn.10015d68
jmp 0x1001ff3c
push 0
push dword [ebp - 0x10]
lea ecx, [ebp - 0x70]
call fcn.1001358b
movsx eax, byte [eax]
push eax
call fcn.1005aab5
pop ecx
push eax
mov ecx, 0x108ded14
call fcn.1003b7e5
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x10]
lea ecx, [ebp - 0x70]
call fcn.1001358b
movsx esi, byte [eax]
push dword [ebp - 0x10]
lea ecx, [ebp - 0x70]
call fcn.1001358b
movsx eax, byte [eax]
push eax
call fcn.1005aab5
pop ecx
cmp esi, eax
jne 0x1001ff03
mov esi, dword [ebp - 0x1c]
add esi, dword [ebp - 0x20]
mov ecx, 0x108ded14
call fcn.1001359f
mov ecx, eax
mov eax, esi
xor edx, edx
div ecx
push edx
mov ecx, 0x108ded14
call fcn.1001358b
movsx eax, byte [eax]
push eax
call fcn.1005aab5
pop ecx
push eax
lea ecx, [ebp - 0x88]
call fcn.10015d68
jmp 0x1001ff3c
mov esi, dword [ebp - 0x1c]
add esi, dword [ebp - 0x20]
mov ecx, 0x108ded14
call fcn.1001359f
mov ecx, eax
mov eax, esi
xor edx, edx
div ecx
push edx
mov ecx, 0x108ded14
call fcn.1001358b
movsx eax, byte [eax]
push eax
call fcn.1005b1f5
pop ecx
push eax
lea ecx, [ebp - 0x88]
call fcn.10015d68
jmp 0x1001fe29
push fcn.100184bb
lea edx, [ebp - 0x88]
mov ecx, 0x10663e38
call fcn.1003bf25
mov ecx, eax
call fcn.100139d1
jmp 0x1001fded
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x88]
call fcn.10013581
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x70]
call fcn.10013581
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x30], eax
lea eax, [ebp + 0x20]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x28]
movzx eax, byte [eax]
test eax, eax
je 0x1001ffa8
push 0x1ffb
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
jmp 0x1001fff3
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x14]
mov dword [eax], 0
jmp 0x1001ffd6
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 0x14]
mov dword [ecx], eax
mov eax, dword [ebp - 0x14]
cmp dword [eax], 3
jge 0x1001fff3
mov eax, dword [ebp - 0x14]
push dword [eax]
mov ecx, dword [ebp - 0x3c]
call fcn.10013deb
mov dword [eax], 1
jmp 0x1001ffcb
jmp 0x10020063
mov eax, dword [ebp + 8]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x44], eax
lea eax, [ebp + 0x1c]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
movzx eax, byte [eax]
test eax, eax
je 0x10020036
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x4c]
movzx eax, byte [eax]
test eax, eax
je 0x10020034
push 0
push 0x2e7
call dword [sym.imp.USER32.dll_SetMenu]
jmp 0x10020063
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x58]
movzx eax, byte [eax]
test eax, eax
je 0x10020063
push 0
push 0x26c5
push 0x1272
push 0x14f1
call dword [sym.imp.USER32.dll_SetDlgItemInt]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret