Function at 0x10002440
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x114
mov eax, dword [0x10004004]
xor eax, esp
mov dword [esp + 0x110], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x14]
mov dword [esp + 8], ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
cmp eax, 0x110
ja 0x1000281a
je 0x10002493
add eax, 0xfffffff4
cmp eax, 0x7a
ja case.0x1000248c.12
movzx eax, byte [eax + 0x100028d0]
jmp dword [eax*4 + 0x100028c8]
push ecx
push 0xffffffffffffffeb
push edi
mov dword [esp + 0x1c], 0
mov byte [esp + 0x54], 0
call dword [sym.imp.USER32.dll_SetWindowLongA]
push edi
call dword [sym.imp.USER32.dll_GetParent]
mov esi, eax
lea eax, [esp + 0x18]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0x20]
sub eax, dword [esp + 0x18]
mov ebx, dword [esp + 0x24]
sub ebx, dword [esp + 0x1c]
mov dword [esp + 0xc], eax
lea eax, [esp + 0x28]
push eax
push esi
call dword [sym.imp.USER32.dll_GetClientRect]
push 2
lea eax, [esp + 0x2c]
push eax
push 0
push esi
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov edx, dword [esp + 0x34]
sub edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
sub edx, ebx
sub ecx, dword [esp + 0x28]
mov esi, dword [esp + 0xc]
sub ecx, esi
sar edx, 1
add edx, dword [esp + 0x2c]
sar ecx, 1
add ecx, dword [esp + 0x28]
mov dword [esp + 0x1c], edx
lea eax, [edx + ebx]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x24], eax
lea eax, [ecx + esi]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [esp + 0x44]
cmp dword [esp + 0x24], edx
jle 0x1000254d
mov dword [esp + 0x24], edx
sub edx, ebx
jmp 0x10002551
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x40]
cmp dword [esp + 0x20], eax
jle 0x10002563
mov dword [esp + 0x20], eax
sub eax, esi
jmp 0x10002567
mov eax, dword [esp + 0x18]
xor ecx, ecx
test eax, eax
push 1
sets cl
dec ecx
and ecx, eax
xor eax, eax
test edx, edx
mov dword [esp + 0x1c], ecx
push ebx
sets al
dec eax
push esi
and eax, edx
push eax
push ecx
push edi
mov dword [esp + 0x34], eax
call dword [sym.imp.USER32.dll_MoveWindow]
push 0x80
lea eax, [esp + 0x9c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edx, 0x80
lea eax, [esp + 0x98]
nop
cmp byte [eax], 0
je 0x100025bb
inc eax
sub edx, 1
jne 0x100025b0
mov ecx, 0x80
mov esi, edx
mov eax, ecx
sub eax, edx
neg esi
sbb esi, esi
and esi, eax
test edx, edx
je case.0x1000248c.12
lea eax, [esp + 0x98]
lea eax, [eax + esi]
sub ecx, esi
je 0x1000260a
mov esi, 0x1000110c
mov edx, 0x7ffffffe
sub esi, eax
mov edi, edi
test edx, edx
je 0x10002606
mov bl, byte [esi + eax]
test bl, bl
je 0x10002606
mov byte [eax], bl
dec edx
inc eax
sub ecx, 1
jne 0x100025f0
jmp 0x1000260a
test ecx, ecx
jne 0x1000260b
dec eax
mov byte [eax], 0
test ecx, ecx
je case.0x1000248c.12
lea eax, [esp + 0x98]
push eax
push 0x11
push 0x18d
push 0xca
push edi
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
mov ebx, eax
test ebx, ebx
js 0x1000274e
jmp 0x10002640
push 0x10004348
push ebx
push 0x189
push 0xca
push edi
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
push 4
push 0x10001114
push 0x10004348
call dword [sym.imp.msvcrt.dll_strncmp]
add esp, 0xc
test eax, eax
je 0x10002745
push 0x50
lea eax, [esp + 0x4c]
mov ecx, 0x10004348
push eax
lea edx, [esp + 0x14]
call fcn.1000fef2
test ax, ax
jne 0x100026d5
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll__lclose]
lea eax, [esp + 0x48]
push eax
push 0
push 0x180
push 0xc9
push edi
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
push 0x10004348
mov esi, eax
call dword [sym.imp.msvcrt.dll_atol]
add esp, 4
push eax
push esi
push 0x19a
push 0xc9
push edi
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
jmp 0x10002745
mov al, byte [0x10004348]
sub al, 0x30
cmp al, 9
ja 0x10002745
push 0x50
lea eax, [esp + 0x4c]
push eax
push 0x12e
push dword [0x10004370]
call dword [sym.imp.USER32.dll_LoadStringA]
push 0x10004348
lea eax, [esp + 0x4c]
push eax
lea eax, [esp + 0xa0]
push 0x80
push eax
call fcn.10001390
add esp, 0x10
lea eax, [esp + 0x48]
push 0x50
push eax
push 0x12d
push dword [0x10004370]
call dword [sym.imp.USER32.dll_LoadStringA]
push 0x30
lea eax, [esp + 0x4c]
push eax
lea eax, [esp + 0xa0]
push eax
push edi
call dword [sym.imp.USER32.dll_MessageBoxA]
sub ebx, 1
jns 0x10002640
push 0
push 0
push 0x18b
push 0xc9
push edi
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
mov esi, eax
test esi, esi
jne 0x100027bf
push 0x80
lea eax, [esp + 0x9c]
push eax
push 0x12c
push dword [0x10004370]
call dword [sym.imp.USER32.dll_LoadStringA]
push 0x50
lea eax, [esp + 0x4c]
push eax
push 0x12d
push dword [0x10004370]
call dword [sym.imp.USER32.dll_LoadStringA]
push 0x30
lea eax, [esp + 0x4c]
push eax
lea eax, [esp + 0xa0]
push eax
push edi
call dword [sym.imp.USER32.dll_MessageBoxA]
push esi
push edi
call dword [sym.imp.USER32.dll_EndDialog]
jmp 0x100027e9
sub esi, 1
js 0x100027e9
mov ebx, dword [esp + 0x14]
push 0
push esi
push 0x199
push 0xc9
push edi
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
cmp eax, dword [ebx]
jne 0x100027e4
mov dword [esp + 0x10], esi
sub esi, 1
jns 0x100027c8
push 0
push dword [esp + 0x14]
push 0x186
push 0xc9
push edi
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
push 0
push 0
push 0x184
push 0xca
push edi
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
jmp 0x100028a9
cmp eax, 0x111
je 0x1000283f
add eax, 0xfffffece
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x110]
xor ecx, esp
call fcn.10002e90
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [ebp + 0x10]
movzx ebx, cx
mov eax, ebx
sub eax, 1
je 0x10002860
sub eax, 1
je 0x10002899
sub eax, 0xc7
jne case.0x1000248c.12
shr ecx, 0x10
cmp ecx, 2
jne case.0x1000248c.12
push 0xffffffffffffffeb
push edi
call dword [sym.imp.USER32.dll_GetWindowLongA]
push 0
push 0
push 0x188
push 0xc9
push edi
mov esi, eax
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
push 0
movzx ecx, ax
push ecx
push 0x199
push 0xc9
push edi
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
mov dword [esi], eax
xor eax, eax
cmp ebx, 2
setne al
push eax
push edi
call dword [sym.imp.USER32.dll_EndDialog]
mov ecx, dword [esp + 0x11c]
mov eax, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10002e90
mov esp, ebp
pop ebp
ret 0x10