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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x21d8
call fcn.004d48a0
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
movzx eax, dx
mov esi, ecx
push edi
sub eax, 4
je 0x4ba9de
sub eax, 1
jne 0x4bada8
test esi, esi
je 0x4ba9c1
mov eax, dword [esi + 4]
test eax, eax
je 0x4ba9b6
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
mov dword [esi + 4], 0
push 0x1c
push esi
call fcn.004bf412
add esp, 8
mov dword [0x4ede60], 0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004bf1a3
mov esp, ebp
pop ebp
ret 4
cmp dword [0x4ebb90], 0xffffffff
je 0x4bad91
push dword [esi + 0xc]
mov edi, dword [sym.imp.USER32.dll_GetWindowTextLengthW]
call edi
test eax, eax
je 0x4bad91
push dword [esi + 0x10]
call edi
test eax, eax
je 0x4bad91
push 0x7fc
lea eax, [ebp - 0x808]
mov dword [ebp - 0x80c], 0x2001b68
push 0
push eax
call fcn.004c0cc0
add esp, 0xc
push dword [esi + 0x10]
call edi
push dword [esi + 0xc]
mov ebx, eax
add bl, bl
call edi
inc bl
mov byte [ebp - 0x807], 5
add al, bl
mov byte [ebp - 0x808], al
lea eax, [ebp - 0x1214]
push 0x400
push eax
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_GetWindowTextW]
movzx eax, byte [ebp - 0x808]
movzx ebx, byte [ebp - 0x807]
push dword [esi + 0xc]
add ebx, eax
movzx eax, byte [ebp - 0x809]
add ebx, eax
movzx eax, byte [ebp - 0x80a]
add ebx, eax
movzx eax, byte [ebp - 0x80b]
add ebx, eax
movzx eax, byte [ebp - 0x80c]
add ebx, eax
mov dword [ebp - 0x21d0], ebx
call edi
test eax, eax
jle 0x4baad5
xor ecx, ecx
mov al, byte [ebp + ecx*2 - 0x1214]
push dword [esi + 0xc]
sub al, 0x30
mov byte [ebp + ecx - 0x806], al
inc ecx
movzx eax, al
add ebx, eax
mov dword [ebp - 0x21c8], ecx
call edi
mov ecx, dword [ebp - 0x21c8]
cmp ecx, eax
jl 0x4baaa4
mov dword [ebp - 0x21d0], ebx
push 0x400
lea eax, [ebp - 0x1214]
push eax
push dword [esi + 0x10]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push dword [esi + 0x10]
mov dword [ebp - 0x21c8], 0
call edi
test eax, eax
jle 0x4babc2
mov dword [ebp - 0x21d4], 0
xor ecx, ecx
mov dword [ebp - 0x21cc], 0
nop word [eax + eax]
push dword [esi + 0xc]
lea edi, [ecx + ecx]
movzx ebx, byte [ebp + edi - 0x1213]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
add eax, dword [ebp - 0x21d4]
push dword [esi + 0xc]
mov byte [ebp + eax - 0x806], bl
movzx ebx, byte [ebp + edi - 0x1214]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
add eax, dword [ebp - 0x21cc]
push dword [esi + 0xc]
mov byte [ebp + eax - 0x805], bl
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov ebx, dword [ebp - 0x21d0]
add eax, edi
push dword [esi + 0xc]
movzx eax, byte [ebp + eax - 0x806]
add ebx, eax
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
push dword [esi + 0x10]
inc dword [ebp - 0x21c8]
add eax, edi
add dword [ebp - 0x21d4], 2
add dword [ebp - 0x21cc], 2
mov edi, dword [sym.imp.USER32.dll_GetWindowTextLengthW]
movzx eax, byte [ebp + eax - 0x805]
add ebx, eax
mov dword [ebp - 0x21d0], ebx
call edi
mov ecx, dword [ebp - 0x21c8]
cmp ecx, eax
jl 0x4bab20
push dword [esi + 0x10]
call edi
push dword [esi + 0xc]
mov edi, eax
add edi, edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
push dword [esi + 0x10]
add eax, edi
mov byte [ebp + eax - 0x806], bl
mov ebx, dword [sym.imp.USER32.dll_GetWindowTextLengthW]
call ebx
push 0
push dword [esi + 0xc]
mov edi, eax
add edi, edi
call ebx
lea ecx, [ebp - 0x80c]
lea edx, [eax + 7]
add edx, edi
call fcn.004b4ba0
test al, al
je 0x4bad91
lea eax, [ebp - 0xa14]
push eax
push 1
push 0
push 0x23
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push 0x4e731c
mov edx, 0x104
lea ecx, [ebp - 0xa14]
call fcn.004b40b0
lea eax, [ebp - 0x21c8]
push eax
lea eax, [ebp - 0xa14]
push eax
call fcn.004b2c20
add esp, 8
lea eax, [ebp - 0x21c4]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 0x21b8]
push eax
movzx eax, word [ebp - 0x21ba]
push eax
movzx eax, word [ebp - 0x21bc]
push eax
movzx eax, word [ebp - 0x21be]
push eax
movzx eax, word [ebp - 0x21c2]
push eax
movzx eax, word [ebp - 0x21c4]
push eax
push 0x4e7700
lea eax, [ebp - 0x21b4]
push 0x7d0
push eax
call fcn.004b5c10
add esp, 0x24
lea eax, [ebp - 0x1214]
push 0x400
push eax
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [ebp - 0x21b4]
push eax
call ebx
mov edi, 0x7d0
sub edi, eax
lea eax, [ebp - 0x21b4]
push eax
call ebx
lea ecx, [ebp - 0x21b4]
lea eax, [ecx + eax*2]
lea ecx, [ebp - 0x1214]
push ecx
push 0x4e73f4
push edi
push eax
call fcn.004b5c10
add esp, 0x10
lea eax, [ebp - 0x1214]
push 0x400
push eax
push dword [esi + 0x10]
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea eax, [ebp - 0x21b4]
push eax
call ebx
mov edi, 0x7d0
sub edi, eax
lea eax, [ebp - 0x21b4]
push eax
call ebx
lea ecx, [ebp - 0x21b4]
lea eax, [ecx + eax*2]
lea ecx, [ebp - 0x1214]
push ecx
push str._ls_
push edi
push eax
call fcn.004b5c10
mov ecx, dword [ebp - 0x21c8]
lea eax, [ebp - 0x21cc]
push 0
push eax
push 0
push 0xffffffffffffffff
lea edx, [ebp - 0x21b4]
call fcn.004782c0
mov edi, dword [ebp - 0x21cc]
push edi
call fcn.004311e0
add esp, 0x24
push edi
call fcn.0042ff80
mov ecx, dword [ebp - 0x21c8]
add esp, 4
xor edx, edx
call fcn.004afb00
push 0
push 0
push 0x4e71e4
push 0x4e7788
jmp 0x4bad9f
push 0
push 0
push 0x4e71e4
push 0x4e76f0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_MessageBoxExW]
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004bf1a3
mov esp, ebp
pop ebp
ret 4