Function at 0x4015e8
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1cc
mov dword [ebp - 0x184], sym.___gxx_personality_sj0
mov dword [ebp - 0x180], 0x460c9a
lea eax, [ebp - 0x17c]
lea ebx, [ebp - 0x18]
mov dword [eax], ebx
mov edx, 0x401aa4
mov dword [eax + 4], edx
mov dword [eax + 8], esp
lea eax, [ebp - 0x19c]
mov dword [esp], eax
call dbg._Unwind_SjLj_Register
mov eax, dword [ebp + 0xc]
cmp eax, 0xf
je 0x4017b2
cmp eax, 0xf
ja 0x401650
cmp eax, 1
je 0x40166b
cmp eax, 2
je 0x401a49
jmp 0x401a66
cmp eax, 0x111
je 0x401919
cmp eax, 0x138
je 0x4018c3
jmp 0x401a66
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], 0
mov eax, dword [ebp + 8]
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 0x1e
mov dword [esp + 0x18], 0x64
mov dword [esp + 0x14], 0x32
mov dword [esp + 0x10], 0x32
mov dword [esp + 0xc], 0x50000000
mov dword [esp + 8], str.Enter_Code:
mov dword [esp + 4], str.STATIC
mov dword [esp], 0
mov eax, dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [ebp - 0x198], 0xffffffff
call eax
sub esp, 0x30
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], 2
mov eax, dword [ebp + 8]
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 0x1e
mov dword [esp + 0x18], 0x96
mov dword [esp + 0x14], 0x32
mov dword [esp + 0x10], 0x96
mov dword [esp + 0xc], 0x50800080
mov dword [esp + 8], 0x468014
mov dword [esp + 4], str.EDIT
mov dword [esp], 0
mov eax, dword [sym.imp.USER32.dll_CreateWindowExA]
call eax
sub esp, 0x30
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], 1
mov eax, dword [ebp + 8]
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 0x1e
mov dword [esp + 0x18], 0x50
mov dword [esp + 0x14], 0x64
mov dword [esp + 0x10], 0xc8
mov dword [esp + 0xc], 0x50000001
mov dword [esp + 8], str.Check
mov dword [esp + 4], str.BUTTON
mov dword [esp], 0
mov eax, dword [sym.imp.USER32.dll_CreateWindowExA]
call eax
sub esp, 0x30
jmp 0x401a97
lea eax, [ebp - 0x144]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_BeginPaint]
mov dword [ebp - 0x198], 0xffffffff
call eax
sub esp, 8
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x38]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_GetClientRect]
call eax
sub esp, 8
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x164], edx
mov dword [ebp - 0x160], eax
mov word [ebp - 0x15c], 0xff00
mov word [ebp - 0x15a], 0
mov word [ebp - 0x158], 0
mov word [ebp - 0x156], 0xff00
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x154], edx
mov dword [ebp - 0x150], eax
mov word [ebp - 0x14c], 0
mov word [ebp - 0x14a], 0
mov word [ebp - 0x148], 0xff00
mov word [ebp - 0x146], 0xff00
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 1
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 1
lea eax, [ebp - 0x40]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 2
lea eax, [ebp - 0x164]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
mov eax, dword [sym.imp.MSIMG32.DLL_GradientFill]
call eax
sub esp, 0x18
lea eax, [ebp - 0x144]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_EndPaint]
call eax
sub esp, 8
nop
jmp 0x401a97
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x1c], eax
mov dword [esp + 4], 0xffffff
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
mov eax, dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 0x198], 0xffffffff
call eax
sub esp, 8
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
mov eax, dword [sym.imp.GDI32.dll_SetBkColor]
call eax
sub esp, 8
mov dword [esp], 4
mov eax, dword [sym.imp.GDI32.dll_GetStockObject]
call eax
sub esp, 4
jmp 0x401a9c
mov eax, dword [ebp + 0x10]
cmp ax, 1
jne 0x401a47
mov dword [esp + 4], 2
mov eax, dword [ebp + 8]
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_GetDlgItem]
mov dword [ebp - 0x198], 0xffffffff
call eax
sub esp, 8
mov dword [ebp - 0x24], eax
mov dword [esp + 8], 0x100
lea eax, [ebp - 0x144]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_GetWindowTextA]
call eax
sub esp, 0xc
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_GetWindowTextLengthA]
call eax
sub esp, 4
mov byte [ebp + eax - 0x144], 0
lea eax, [ebp - 0x25]
mov ecx, eax
call fcn.00445e10
lea eax, [ebp - 0x44]
lea edx, [ebp - 0x25]
mov dword [esp + 4], edx
lea edx, [ebp - 0x144]
mov dword [esp], edx
mov dword [ebp - 0x198], 1
mov ecx, eax
call sym.std::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string_char_const__std::allocator_char__const_
sub esp, 8
lea eax, [ebp - 0x25]
mov ecx, eax
call sym.std::allocator_char_::allocator__
mov dword [esp + 4], 0x46f020
lea eax, [ebp - 0x44]
mov dword [esp], eax
call method.__gnu_cxx::__enable_if_std::__is_char_char_::__value__bool_::__type_std.operator_char__std::basic_string_char__std::char_traits_char___std::allocator_char____const__std::basic_string_char__std::char_traits_char___std::allocator_char____const_
test al, al
je 0x401a0b
mov dword [esp + 0xc], 0
mov dword [esp + 8], str.YAYYYY
mov dword [esp + 4], str.YOU_GOT_IN_____
mov eax, dword [ebp + 8]
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_MessageBoxA]
mov dword [ebp - 0x198], 2
call eax
sub esp, 0x10
jmp 0x401a3d
mov dword [esp + 0xc], 0
mov dword [esp + 8], str.NAYYYYYY
mov dword [esp + 4], str.GRRRRR_WRONG____
mov eax, dword [ebp + 8]
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_MessageBoxA]
mov dword [ebp - 0x198], 2
call eax
sub esp, 0x10
lea eax, [ebp - 0x44]
mov ecx, eax
call fcn.0044a8d0
jmp 0x401a97
mov dword [esp], 0
mov eax, dword [sym.imp.USER32.dll_PostQuitMessage]
mov dword [ebp - 0x198], 0xffffffff
call eax
sub esp, 4
jmp 0x401a97
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_DefWindowProcA]
mov dword [ebp - 0x198], 0xffffffff
call eax
sub esp, 0x10
jmp 0x401a9c
mov eax, 0
mov dword [ebp - 0x1a0], eax
jmp 0x401b13
lea eax, [ebp - 0x19c]
mov dword [esp], eax
call sym.__Unwind_SjLj_Unregister
mov eax, dword [ebp - 0x1a0]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 0x10