Function at 0x10002330
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 0x1000271a
je 0x10002398
add eax, 0xfffffff4
cmp eax, 0x7a
ja case.0x10002378.12
movzx eax, byte [eax + 0x100027e0]
jmp dword [eax*4 + 0x100027d8]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x110]
xor ecx, esp
call fcn.10002dd0
mov esp, ebp
pop ebp
ret 0x10
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 0x10002452
mov dword [esp + 0x24], edx
sub edx, ebx
jmp 0x10002456
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x40]
cmp dword [esp + 0x20], eax
jle 0x10002468
mov dword [esp + 0x20], eax
sub eax, esi
jmp 0x1000246c
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]
cmp byte [eax], 0
je 0x100024bf
inc eax
sub edx, 1
jne 0x100024b4
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.0x10002378.12
lea eax, [esp + 0x98]
lea eax, [eax + esi]
sub ecx, esi
je 0x1000250c
mov esi, 0x100010fc
mov edx, 0x7ffffffe
sub esi, eax
test edx, edx
je 0x10002508
mov bl, byte [esi + eax]
test bl, bl
je 0x10002508
mov byte [eax], bl
dec edx
inc eax
sub ecx, 1
jne 0x100024f2
jmp 0x1000250c
test ecx, ecx
jne 0x1000250d
dec eax
mov byte [eax], 0
test ecx, ecx
je case.0x10002378.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 0x1000264e
lea ecx, [ecx]
push 0x10004348
push ebx
push 0x189
push 0xca
push edi
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
push 4
push 0x10001104
push 0x10004348
call dword [sym.imp.msvcrt.dll_strncmp]
add esp, 0xc
test eax, eax
je 0x10002645
push 0x50
lea eax, [esp + 0x4c]
mov ecx, 0x10004348
push eax
lea edx, [esp + 0x14]
call fcn.1000fc37
test ax, ax
jne 0x100025d5
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 0x10002645
mov al, byte [0x10004348]
sub al, 0x30
cmp al, 9
ja 0x10002645
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.10001360
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 0x10002540
push 0
push 0
push 0x18b
push 0xc9
push edi
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
mov esi, eax
test esi, esi
jne 0x100026bf
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 0x100026e9
sub esi, 1
js 0x100026e9
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 0x100026e4
mov dword [esp + 0x10], esi
sub esi, 1
jns 0x100026c8
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 0x100027ba
cmp eax, 0x111
je 0x10002748
add eax, 0xfffffece
cmp eax, 6
ja case.0x10002378.12
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x110]
xor ecx, esp
call fcn.10002dd0
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [ebp + 0x10]
movzx ebx, cx
mov eax, ebx
sub eax, 1
je 0x10002771
sub eax, 1
je 0x100027aa
sub eax, 0xc7
jne case.0x10002378.12
shr ecx, 0x10
cmp ecx, 2
jne case.0x10002378.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.10002dd0
mov esp, ebp
pop ebp
ret 0x10