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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x624
mov eax, dword [0x1003f6e4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
push 0x88
push edi
mov dword [ebp - 0x624], esi
call dword [sym.imp.USER32.dll_GetDlgItem]
test eax, eax
je 0x100123bc
push 0x104
lea eax, [ebp - 0x210]
push eax
push 0x429
push edi
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0x104
lea eax, [ebp - 0x620]
push eax
push 0x43a
push edi
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0x104
lea eax, [ebp - 0x418]
push eax
push 0x43b
push edi
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp word [ebp - 0x210], 0
je 0x10012224
cmp word [ebp - 0x620], 0
je 0x10012211
cmp word [ebp - 0x418], 0
jne 0x10012224
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003a750
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0x147
push 0x42a
push edi
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
push 0
push eax
push 0x150
push 0x42a
push edi
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov cx, word [ebp - 0x210]
lea ebx, [eax + 1]
neg ebx
sbb ebx, ebx
and ebx, eax
test cx, cx
jne 0x1001236a
push 0x420
push edi
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ecx, dword [esi + 4]
cmp dword [ecx + 0x34], 0
jne 0x1001235a
push 0
push 0
push pe_nt_image_headers32
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x100122b5
push 0x104
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
jmp 0x100122df
mov eax, dword [esi + 4]
mov ecx, dword [eax + 0x2c]
test ecx, ecx
je 0x100122c2
push ecx
jmp 0x100122ca
mov eax, dword [eax + 0x10]
test eax, eax
je 0x100122df
push eax
lea eax, [ebp - 0x210]
push 0x104
push eax
call dword [sym.imp.msvcrt.dll_wcscpy_s]
add esp, 0xc
cmp word [ebp - 0x210], 0
je 0x1001235a
lea ecx, [ebp - 0x210]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100122f2
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
call dword [sym.imp.msvcrt.dll_malloc]
mov ecx, dword [esi + 4]
add esp, 4
mov dword [ecx + 0x34], eax
mov eax, dword [esi + 4]
mov edx, dword [eax + 0x34]
test edx, edx
je 0x10012211
lea esi, [ebp - 0x210]
lea ecx, [esi + 2]
nop
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x10012330
sub esi, ecx
lea eax, [ebp - 0x210]
sar esi, 1
push eax
lea eax, [esi + 1]
push eax
push edx
call dword [sym.imp.msvcrt.dll_wcscpy_s]
mov esi, dword [ebp - 0x624]
add esp, 0xc
mov edx, esi
mov ecx, edi
call fcn.100110c0
mov cx, word [ebp - 0x210]
mov ax, word [ebp - 0x418]
cmp ebx, 1
jl 0x10012396
test cx, cx
je 0x10012211
cmp word [ebp - 0x620], 0
je 0x10012211
test ax, ax
je 0x10012211
test cx, cx
jne 0x100123b3
test ax, ax
je 0x100123bc
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003a750
mov esp, ebp
pop ebp
ret
test ax, ax
je 0x10012211
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1003a750
mov esp, ebp
pop ebp
ret