Function at 0x401360
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push edi
lea eax, [ebp - 0x6c]
sub esp, 0xa4
mov dword [ebp - 0x54], sym.___gxx_personality_sj0
mov dword [ebp - 0x50], 0x4cb5a4
mov dword [ebp - 0x4c], ebp
mov dword [ebp - 0x48], 0x401684
mov dword [ebp - 0x44], esp
mov dword [esp], eax
call dbg._Unwind_SjLj_Register
cmp dword [ebp + 0xc], 2
je 0x40162a
cmp dword [ebp + 0xc], 0x111
je 0x40152c
cmp dword [ebp + 0xc], 1
jne 0x401655
mov dword [esp + 4], 0xfffffffa
mov eax, dword [ebp + 8]
mov dword [esp], eax
mov dword [ebp - 0x68], 0xffffffff
call sym._GetWindowLongA_8
push edx
push edx
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], 0x3e9
mov eax, dword [ebp + 8]
mov dword [esp + 0x1c], 0x14
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], 0x1f4
mov dword [esp + 0x14], 0xa
mov dword [esp + 0x10], 0x50
mov dword [esp + 0xc], 0x50200000
mov dword [esp + 8], 0
mov dword [esp + 4], str.EDIT
mov dword [esp], 0x200
call sym._CreateWindowExA_48
sub esp, 0x30
mov dword [0x4df124], eax
mov dword [esp + 4], 0xfffffffa
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._GetWindowLongA_8
push ecx
push ecx
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], 0x3ea
mov eax, dword [ebp + 8]
mov dword [esp + 0x1c], 0x14
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], 0x3c
mov dword [esp + 0x14], 0xa
mov dword [esp + 0x10], 0xa
mov dword [esp + 0xc], 0x50000000
mov dword [esp + 8], str.path:
mov dword [esp + 4], str.STATIC
mov dword [esp], 0x200
call sym._CreateWindowExA_48
sub esp, 0x30
mov dword [esp + 4], 0xfffffffa
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._GetWindowLongA_8
push edi
push edi
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], 0x3eb
mov eax, dword [ebp + 8]
mov dword [esp + 0x1c], 0x32
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], 0x64
mov dword [esp + 0x14], 0x28
mov dword [esp + 0x10], 0xa
mov dword [esp + 0xc], 0x50000000
mov dword [esp + 8], str.LOAD
mov dword [esp + 4], str.BUTTON
mov dword [esp], 0x200
call sym._CreateWindowExA_48
mov dword [0x4df120], eax
sub esp, 0x30
jmp 0x40164c
mov dword [ebp - 0x70], 0
mov eax, dword [ebp + 0x14]
cmp dword [0x4df120], eax
jne 0x4016ba
mov eax, 0x200
mov dword [ebp - 0x74], esp
call fcn.00426bc0
mov ecx, 0x1ff
sub esp, eax
lea eax, [esp + 0x30]
lea edx, [esp + 0x31]
mov dword [ebp - 0x44], esp
mov dword [ebp - 0x70], eax
mov edi, edx
xor eax, eax
mov byte [esp + 0x30], 0
rep stosb byte es:[edi], al
mov dword [esp + 8], 0x200
mov eax, dword [ebp - 0x70]
mov dword [esp + 4], eax
mov eax, dword [0x4df124]
mov dword [esp], eax
mov dword [ebp - 0x68], 0xffffffff
call sym._GetWindowTextA_12
lea eax, [ebp - 0x20]
lea ecx, [ebp - 0x38]
sub esp, 0xc
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x70]
mov dword [esp], eax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___.basic_string_char_const__std::allocator_char__const_
lea ecx, [ebp - 0x20]
push eax
push eax
lea eax, [ebp - 0x38]
mov dword [esp], eax
mov dword [ebp - 0x68], 1
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___.basic_string_std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____const_
push edi
lea eax, [ebp - 0x20]
mov ecx, 0x4df020
mov dword [esp], eax
mov dword [ebp - 0x68], 2
call method.BMP.BMP_LoadFile_std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____
push ecx
lea ecx, [ebp - 0x20]
mov byte [ebp - 0x70], al
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___._M_dispose__
cmp byte [ebp - 0x70], 0
je 0x4015fb
lea ecx, [ebp - 0x38]
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___._M_dispose__
mov esp, dword [ebp - 0x74]
mov dword [ebp - 0x44], esp
jmp 0x40164c
mov dword [esp + 0xc], 0x10
mov dword [esp + 8], str.ERROR
mov dword [esp + 4], str.Sprawd
mov eax, dword [ebp + 8]
mov dword [esp], eax
mov dword [ebp - 0x68], 1
call sym._MessageBoxA_16
sub esp, 0x10
jmp 0x4015eb
mov eax, dword [0x4df11c]
mov dword [esp], eax
mov dword [ebp - 0x68], 0xffffffff
call sym._DeleteObject_4
push eax
mov dword [esp], 0
call sym._PostQuitMessage_4
push edx
mov dword [ebp - 0x70], 0
jmp 0x4016ba
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 dword [ebp - 0x68], 0xffffffff
call sym._DefWindowProcA_16
mov dword [ebp - 0x70], eax
sub esp, 0x10
jmp 0x4016ba
lea eax, [ebp - 0x6c]
mov dword [esp], eax
call sym.__Unwind_SjLj_Unregister
mov eax, dword [ebp - 0x70]
mov edi, dword [ebp - 4]
leave
ret 0x10