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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x100416e4]
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 0x100158b8
sub ecx, 0x100
je 0x10015875
sub ecx, 1
je 0x100156e5
test edi, edi
je 0x100158d1
cmp edx, dword [edi + 4]
jne 0x100158d1
push 8
push ebx
call dword [sym.imp.USER32.dll_GetWindowLongA]
test eax, eax
je 0x100158d1
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 0x100158d1
push 0x410
push esi
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0
push 0
push 0xf0
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [ebx + 0x50]
test eax, eax
je 0x100156da
or ecx, 1
mov dword [ebx + 0x50], ecx
jmp 0x100158d1
and ecx, 0xfffffffe
mov dword [ebx + 0x50], ecx
jmp 0x100158d1
mov ecx, dword [ebp + 0x10]
movzx eax, cx
sub eax, 0x440
je 0x10015836
sub eax, 0x20
je 0x1001581e
sub eax, 0x20
jne 0x100158d1
shr ecx, 0x10
cmp ecx, 0x300
jne 0x100158d1
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 0x10015740
sub ecx, edx
sar ecx, 1
cmp ecx, 5
ja 0x10015776
push 2
lea eax, [ebp - 0x210]
push 0x100027cc
push eax
call dword [sym.imp.msvcrt.dll_wcsncmp]
add esp, 0xc
test eax, eax
jne 0x10015776
push 1
jmp 0x10015809
lea ecx, [ebp - 0x210]
call fcn.100324d0
test eax, eax
je 0x10015807
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.100331e0
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 0x100158d1
push 0
push 1
push esi
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
jmp 0x100158d1
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003bd00
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 0x100158d1
mov ecx, esi
call fcn.10016150
push 8
call dword [sym.imp.msvcrt.dll_malloc]
mov edi, eax
add esp, 4
test edi, edi
jne 0x10015896
mov ecx, esi
call fcn.10032430
jmp 0x100158d1
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 0x100158d1
test edi, edi
je 0x100158c6
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.1003bd00
mov esp, ebp
pop ebp
ret 0x10