Function at 0x4025d2
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x150
mov eax, dword [ebp + 0xc]
cmp eax, 7
je 0x4029d7
cmp eax, 7
ja 0x402601
cmp eax, 1
je 0x40261c
cmp eax, 5
je 0x402742
jmp 0x402c6a
cmp eax, 0x111
je 0x402a01
cmp eax, 0x222
je 0x4027a1
jmp 0x402c6a
mov eax, dword [0x423020]
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], 0x7d0
mov eax, dword [ebp + 8]
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 0x80000000
mov dword [esp + 0x18], 0x80000000
mov dword [esp + 0x14], 0x80000000
mov dword [esp + 0x10], 0x80000000
mov dword [esp + 0xc], 0x50301004
mov dword [esp + 8], 0x420458
mov dword [esp + 4], str.EDIT
mov dword [esp], 0x200
mov eax, dword [sym.imp.USER32.dll_CreateWindowExA]
call eax
sub esp, 0x30
mov dword [ebp - 0x10], eax
mov dword [esp], 0x11
mov eax, dword [sym.imp.GDI32.dll_GetStockObject]
call eax
sub esp, 4
mov dword [esp + 0xc], 1
mov dword [esp + 8], eax
mov dword [esp + 4], 0x30
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_SendMessageA]
call eax
sub esp, 0x10
mov dword [esp + 8], 0x104
lea eax, [ebp - 0x11c]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_GetWindowTextA]
call eax
sub esp, 0xc
movzx eax, byte [ebp - 0x11c]
cmp al, 0x5b
je 0x402c6a
lea eax, [ebp - 0x11c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym.LoadFile_HWND____char_const_
test eax, eax
sete al
test al, al
je 0x402c6a
mov dword [esp + 0xc], 0x30
mov dword [esp + 8], 0x420135
mov dword [esp + 4], 0x42045e
mov eax, dword [ebp + 8]
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_MessageBoxA]
call eax
sub esp, 0x10
mov eax, 0xffffffff
jmp 0x402c8f
cmp dword [ebp + 0x10], 1
je 0x40279c
mov eax, dword [ebp + 0x14]
shr eax, 0x10
movzx esi, ax
mov eax, dword [ebp + 0x14]
movzx ebx, ax
mov dword [esp + 4], 0x7d0
mov eax, dword [ebp + 8]
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_GetDlgItem]
call eax
sub esp, 8
mov dword [esp + 0x14], 1
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_MoveWindow]
call eax
sub esp, 0x18
jmp 0x402c6a
mov eax, dword [0x423030]
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_GetMenu]
call eax
sub esp, 4
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x14]
cmp eax, dword [ebp + 8]
jne 0x4027c7
mov dword [ebp - 0xc], 1
jmp 0x4027ce
mov dword [ebp - 0xc], 0
cmp dword [ebp - 0xc], 0
sete al
movzx eax, al
or ah, 4
mov dword [esp + 8], eax
mov dword [esp + 4], 1
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_EnableMenuItem]
call eax
sub esp, 0xc
cmp dword [ebp - 0xc], 0
sete al
movzx eax, al
or ah, 4
mov dword [esp + 8], eax
mov dword [esp + 4], 2
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_EnableMenuItem]
call eax
sub esp, 0xc
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_GetSubMenu]
call eax
sub esp, 8
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0xc], 0
sete al
movzx eax, al
mov dword [esp + 8], eax
mov dword [esp + 4], 0x2371
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_EnableMenuItem]
call eax
sub esp, 0xc
cmp dword [ebp - 0xc], 0
sete al
movzx eax, al
mov dword [esp + 8], eax
mov dword [esp + 4], 0x2372
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_EnableMenuItem]
call eax
sub esp, 0xc
mov eax, dword [0x423030]
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_DrawMenuBar]
call eax
sub esp, 4
mov eax, dword [ebp - 0xc]
movzx edx, ax
mov eax, dword [0x42302c]
mov dword [esp + 0xc], edx
mov dword [esp + 8], 0x2371
mov dword [esp + 4], 0x401
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_SendMessageA]
call eax
sub esp, 0x10
mov eax, dword [ebp - 0xc]
movzx edx, ax
mov eax, dword [0x42302c]
mov dword [esp + 0xc], edx
mov dword [esp + 8], 0x2373
mov dword [esp + 4], 0x401
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_SendMessageA]
call eax
sub esp, 0x10
mov eax, dword [ebp - 0xc]
movzx edx, ax
mov eax, dword [0x42302c]
mov dword [esp + 0xc], edx
mov dword [esp + 8], 0x2375
mov dword [esp + 4], 0x401
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_SendMessageA]
call eax
sub esp, 0x10
mov eax, dword [ebp - 0xc]
movzx edx, ax
mov eax, dword [0x42302c]
mov dword [esp + 0xc], edx
mov dword [esp + 8], 0x2376
mov dword [esp + 4], 0x401
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_SendMessageA]
call eax
sub esp, 0x10
mov eax, dword [ebp - 0xc]
movzx edx, ax
mov eax, dword [0x42302c]
mov dword [esp + 0xc], edx
mov dword [esp + 8], 0x2377
mov dword [esp + 4], 0x401
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_SendMessageA]
call eax
sub esp, 0x10
mov dword [esp + 8], 0x104
lea eax, [ebp - 0x11c]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_GetWindowTextA]
call eax
sub esp, 0xc
cmp dword [ebp - 0xc], 0
je 0x4029a5
lea eax, [ebp - 0x11c]
jmp 0x4029aa
mov eax, 0x420458
mov edx, dword [0x423028]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0x401
mov dword [esp], edx
mov eax, dword [sym.imp.USER32.dll_SendMessageA]
call eax
sub esp, 0x10
nop
jmp 0x402c6a
mov dword [esp + 4], 0x7d0
mov eax, dword [ebp + 8]
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_GetDlgItem]
call eax
sub esp, 8
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_SetFocus]
call eax
sub esp, 4
jmp 0x402c6a
mov eax, dword [ebp + 0x10]
movzx eax, ax
sub eax, 0x2371
cmp eax, 6
ja case.0x402a1c.9076
mov eax, dword [eax*4 + 0x420490]
jmp eax
mov dword [esp + 8], 0x104
lea eax, [ebp - 0x11c]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_GetWindowTextA]
call eax
sub esp, 0xc
movzx eax, byte [ebp - 0x11c]
cmp al, 0x5b
je 0x402ab2
mov dword [esp + 4], 0x7d0
mov eax, dword [ebp + 8]
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_GetDlgItem]
call eax
sub esp, 8
mov edx, eax
lea eax, [ebp - 0x11c]
mov dword [esp + 4], eax
mov dword [esp], edx
call sym.SaveFile_HWND____char_const_
test eax, eax
sete al
test al, al
je 0x402ada
mov dword [esp + 0xc], 0x30
mov dword [esp + 8], 0x42046d
mov dword [esp + 4], 0x420474
mov eax, dword [ebp + 8]
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_MessageBoxA]
call eax
sub esp, 0x10
mov eax, 0
jmp 0x402c8f
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x2372
mov dword [esp + 4], 0x111
mov eax, dword [ebp + 8]
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_PostMessageA]
call eax
sub esp, 0x10
mov eax, 0
jmp 0x402c8f
mov dword [esp + 8], 1
lea eax, [ebp - 0x11c]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym.GetFileName_HWND____char__int_
test eax, eax
setne al
test al, al
je 0x402b8f
mov dword [esp + 4], 0x7d0
mov eax, dword [ebp + 8]
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_GetDlgItem]
call eax
sub esp, 8
mov edx, eax
lea eax, [ebp - 0x11c]
mov dword [esp + 4], eax
mov dword [esp], edx
call sym.SaveFile_HWND____char_const_
test eax, eax
sete al
test al, al
je 0x402b75
mov dword [esp + 0xc], 0x30
mov dword [esp + 8], 0x42046d
mov dword [esp + 4], 0x420474
mov eax, dword [ebp + 8]
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_MessageBoxA]
call eax
sub esp, 0x10
mov eax, 0
jmp 0x402c8f
lea eax, [ebp - 0x11c]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_SetWindowTextA]
call eax
sub esp, 8
mov eax, 0
jmp 0x402c8f
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0xc7
mov dword [esp + 4], 0x7d0
mov eax, dword [ebp + 8]
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_SendDlgItemMessageA]
call eax
sub esp, 0x14
jmp case.0x402a1c.9076
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x300
mov dword [esp + 4], 0x7d0
mov eax, dword [ebp + 8]
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_SendDlgItemMessageA]
call eax
sub esp, 0x14
jmp case.0x402a1c.9076
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x301
mov dword [esp + 4], 0x7d0
mov eax, dword [ebp + 8]
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_SendDlgItemMessageA]
call eax
sub esp, 0x14
jmp case.0x402a1c.9076
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x302
mov dword [esp + 4], 0x7d0
mov eax, dword [ebp + 8]
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_SendDlgItemMessageA]
call eax
sub esp, 0x14
nop
mov eax, 0
jmp 0x402c8f
mov eax, dword [ebp + 0x14]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_DefMDIChildProcA]
call eax
sub esp, 0x10
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret 0x10