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

Disassembly:
mov eax, 0x414db8
call fcn.0040a32c
sub esp, 0x220
and byte [ebp - 0x128], 0
push ebx
push esi
push edi
mov ebx, ecx
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x127]
mov esi, 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x128]
push esi
push eax
push 0x3f8
push dword [ebx + 0x4f0]
mov dword [ebp - 0x10], ebx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea eax, [ebp - 0x128]
lea ecx, [ebp - 0x20]
push eax
call fcn.0040102d
and dword [ebp - 4], 0
add ebx, 0x524
push eax
mov ecx, ebx
call fcn.0040114f
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.004010b2
mov ecx, ebx
call fcn.00401170
mov ecx, ebx
mov edi, eax
call fcn.0040118f
cmp eax, 2
jl 0x405d06
jne 0x405cf5
cmp byte [edi + 1], 0x3a
jmp 0x405d04
cmp eax, 2
jle 0x405d50
cmp byte [edi + 1], 0x3a
jne 0x405d06
cmp byte [edi + 2], 0x5c
je 0x405d50
push esi
lea eax, [ebp - 0x128]
push 0
push eax
call fcn.0040a4c0
add esp, 0xc
lea eax, [ebp - 0x128]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea eax, [ebp - 0x128]
lea ecx, [ebp - 0x20]
push eax
call fcn.0040102d
push eax
mov ecx, ebx
mov dword [ebp - 4], 1
call fcn.0040114f
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.004010b2
mov ecx, ebx
call fcn.0040118f
test eax, eax
jle 0x405ee9
and byte [ebp - 0x22c], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x22b]
push esi
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x22c]
mov ecx, ebx
push eax
call fcn.00401170
mov edi, dword [ebp - 0x10]
push eax
lea ecx, [edi + 8]
call fcn.0040663a
lea ecx, [edi + 0x530]
call fcn.0040117d
mov edi, eax
lea eax, [ebp - 0x22c]
push eax
call fcn.00409ba0
cmp eax, edi
pop ecx
jb 0x405e13
mov eax, dword [ebp - 0x10]
lea edi, [eax + 0x530]
mov ecx, edi
mov dword [ebp - 0x14], edi
call fcn.00401170
mov ecx, edi
mov dword [ebp - 0x24], eax
call fcn.0040117d
lea edi, [ebp - 0x22c]
sub edi, eax
lea eax, [ebp - 0x22c]
push eax
call fcn.00409ba0
push dword [ebp - 0x24]
add edi, eax
push edi
call fcn.0040aabd
add esp, 0xc
test eax, eax
jne 0x405e13
mov ecx, dword [ebp - 0x14]
call fcn.0040117d
lea edi, [ebp - 0x22c]
sub edi, eax
lea eax, [ebp - 0x22c]
push eax
call fcn.00409ba0
and byte [edi + eax], 0
pop ecx
lea eax, [ebp - 0x22c]
mov ecx, ebx
push eax
call fcn.00401109
mov ecx, ebx
call fcn.0040118f
mov ecx, ebx
mov edi, eax
call fcn.00401170
cmp byte [edi + eax - 1], 0x5c
je 0x405e44
push 0x418040
mov ecx, ebx
call fcn.00401205
mov ecx, dword [ebp - 0x10]
push ebx
call fcn.00405ef8
test al, al
jne 0x405ecf
push esi
lea eax, [ebp - 0x128]
push 0
push eax
call fcn.0040a4c0
add esp, 0xc
lea eax, [ebp - 0x128]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea eax, [ebp - 0x128]
lea ecx, [ebp - 0x20]
push eax
call fcn.0040102d
push eax
mov ecx, ebx
mov dword [ebp - 4], 2
call fcn.0040114f
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.004010b2
mov ecx, ebx
call fcn.0040118f
mov esi, eax
test esi, esi
jle 0x405ee9
mov ecx, ebx
call fcn.00401170
cmp byte [esi + eax - 1], 0x5c
je 0x405ec2
push 0x418040
mov ecx, ebx
call fcn.00401205
mov ecx, dword [ebp - 0x10]
push ebx
call fcn.00405ef8
test al, al
je 0x405ee9
sub esp, 0xc
mov ecx, esp
mov dword [ebp - 0x14], esp
push ebx
call fcn.0040106e
mov ecx, dword [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
call fcn.0040545f
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret