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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x41c
mov eax, dword [0x100416e4]
xor eax, esp
mov dword [esp + 0x418], 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 0x10015bf1
sub ecx, 0x100
je 0x10015bae
sub ecx, 1
je 0x10015a2c
test edi, edi
je 0x10015c0a
cmp edx, dword [edi + 4]
jne 0x10015c0a
push 8
push ebx
call dword [sym.imp.USER32.dll_GetWindowLongA]
test eax, eax
je 0x10015c0a
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 0x10015c0a
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 0x10015a21
or ecx, 1
mov dword [ebx + 0x50], ecx
jmp 0x10015c0a
and ecx, 0xfffffffe
mov dword [ebx + 0x50], ecx
jmp 0x10015c0a
mov ecx, dword [ebp + 0x10]
movzx eax, cx
sub eax, 0x440
je 0x10015b6d
sub eax, 0x20
je 0x10015b51
sub eax, 0x20
jne 0x10015c0a
shr ecx, 0x10
cmp ecx, 0x300
jne 0x10015c0a
push 0x104
lea eax, [esp + 0x14]
push eax
push 0x480
push esi
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea ecx, [esp + 0x10]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10015a82
sub ecx, edx
sar ecx, 1
cmp ecx, 5
ja 0x10015ab6
push 2
lea eax, [esp + 0x14]
push 0x100027b4
push eax
call dword [sym.imp.msvcrt.dll_wcsncmp]
add esp, 0xc
test eax, eax
jne 0x10015ab6
push 1
jmp 0x10015b3c
lea ecx, [esp + 0x10]
call fcn.10032a20
test eax, eax
je 0x10015b3a
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.msvcrt.dll__wchdir]
lea eax, [esp + 0x14]
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 edx, [esp + 0x220]
lea ecx, [esp + 0x18]
call fcn.100335c0
lea eax, [esp + 0x218]
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 0x10015c0a
push 0
push 1
push esi
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
jmp 0x10015c0a
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x418]
xor ecx, esp
call fcn.1003c3b0
mov esp, ebp
pop ebp
ret 0x10
push 0x104
lea eax, [esp + 0x21c]
push eax
push 0x440
push esi
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea eax, [esp + 0x218]
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 0x10015c0a
mov ecx, esi
call fcn.10016420
push 8
call dword [sym.imp.msvcrt.dll_malloc]
mov edi, eax
add esp, 4
test edi, edi
jne 0x10015bcf
mov ecx, esi
call fcn.10032980
jmp 0x10015c0a
push edi
push 8
push esi
call dword [sym.imp.USER32.dll_SetWindowLongA]
mov eax, dword [ebp + 0x14]
push 0x100027d4
mov eax, dword [eax + 0x40]
mov dword [edi], eax
call dword [sym.imp.USER32.dll_RegisterWindowMessageA]
mov dword [edi + 4], eax
jmp 0x10015c0a
test edi, edi
je 0x10015bff
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 [esp + 0x424]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1003c3b0
mov esp, ebp
pop ebp
ret 0x10