Function at 0x10015270
Capabilities:
Get common file path
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x1003f6e4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 4
push esi
call dword [sym.imp.USER32.dll_GetWindow]
push 8
push esi
mov ebx, eax
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov edx, dword [ebp + 0xc]
mov edi, eax
mov ecx, edx
sub ecx, 0x10
je 0x10015528
sub ecx, 0x100
je 0x100154e5
sub ecx, 1
je 0x10015355
test edi, edi
je 0x10015541
cmp edx, dword [edi + 4]
jne 0x10015541
push 8
push ebx
call dword [sym.imp.USER32.dll_GetWindowLongA]
test eax, eax
je 0x10015541
push dword [edi]
mov ebx, dword [eax + 4]
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push dword [edi]
push 0
push 0xc
push 0x480
push esi
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
cmp byte [ebx + 0xa8], 0x16
jne 0x10015541
push 0x410
push esi
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0
push 0
push pe_nt_image_headers32
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [ebx + 0x50]
test eax, eax
je 0x1001534a
or ecx, 1
mov dword [ebx + 0x50], ecx
jmp 0x10015541
and ecx, 0xfffffffe
mov dword [ebx + 0x50], ecx
jmp 0x10015541
mov ecx, dword [ebp + 0x10]
movzx eax, cx
sub eax, 0x440
je 0x100154a6
sub eax, 0x20
je 0x1001548e
sub eax, 0x20
jne 0x10015541
shr ecx, 0x10
cmp ecx, 0x300
jne 0x10015541
push 0x104
lea eax, [ebp - 0x210]
push eax
push 0x480
push esi
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea ecx, [ebp - 0x210]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100153b0
sub ecx, edx
sar ecx, 1
cmp ecx, 5
ja 0x100153f6
push 2
lea eax, [ebp - 0x210]
push 0x100027cc
push eax
call dword [sym.imp.msvcrt.dll_wcsncmp]
add esp, 0xc
test eax, eax
jne 0x100153f6
push 1
push 1
push esi
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
jmp 0x10015541
lea ecx, [ebp - 0x210]
call fcn.10031af0
test eax, eax
je 0x10015487
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.msvcrt.dll__wchdir]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.msvcrt.dll__wchdir]
add esp, 8
xor ecx, ecx
test eax, eax
sete cl
push ecx
push 1
push esi
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
push 0x440
push esi
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
push 0x104
lea eax, [ebp - 0x418]
xor edx, edx
push eax
lea ecx, [ebp - 0x210]
call fcn.10032820
lea eax, [ebp - 0x418]
push eax
push 0
push 0xc
push 0x440
push esi
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x10015541
push 0
jmp 0x100153e1
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003a750
mov esp, ebp
pop ebp
ret 0x10
push 0x104
lea eax, [ebp - 0x418]
push eax
push 0x440
push esi
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea eax, [ebp - 0x418]
push eax
push 0
push 0xc
push 0x480
push esi
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x10015541
mov ecx, esi
call fcn.10015dc0
push 8
call dword [sym.imp.msvcrt.dll_malloc]
mov edi, eax
add esp, 4
test edi, edi
jne 0x10015506
mov ecx, esi
call fcn.10031a50
jmp 0x10015541
push edi
push 8
push esi
call dword [sym.imp.USER32.dll_SetWindowLongA]
mov eax, dword [ebp + 0x14]
push 0x100027ec
mov eax, dword [eax + 0x40]
mov dword [edi], eax
call dword [sym.imp.USER32.dll_RegisterWindowMessageA]
mov dword [edi + 4], eax
jmp 0x10015541
test edi, edi
je 0x10015536
push edi
call dword [sym.imp.msvcrt.dll_free]
add esp, 4
push 0
push 8
push esi
call dword [sym.imp.USER32.dll_SetWindowLongA]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1003a750
mov esp, ebp
pop ebp
ret 0x10