Function at 0x406360
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
cmp dword [ebp + 0xc], 0x111
je 0x4065c1
cmp dword [ebp + 0xc], 0x111
ja 0x406696
cmp dword [ebp + 0xc], 1
je 0x406395
cmp dword [ebp + 0xc], 2
je 0x406683
jmp 0x406696
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], 0x19
mov dword [esp + 0x18], 0xc8
mov dword [esp + 0x14], 0xa
mov dword [esp + 0x10], 0x32
mov dword [esp + 0xc], 0x50800001
mov dword [esp + 8], 0x42da80
mov dword [esp + 4], str.EDIT
mov dword [esp], 0
mov eax, dword [sym.imp.USER32.dll_CreateWindowExW]
call eax
sub esp, 0x30
mov dword [0x4380f4], eax
mov eax, dword [0x438044]
mov eax, dword [eax + 0xc]
mov edx, eax
mov eax, dword [0x4380f4]
mov dword [esp + 0xc], 1
mov dword [esp + 8], edx
mov dword [esp + 4], 0x30
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_SendMessageW]
call eax
sub esp, 0x10
mov edx, str.Username
mov eax, dword [0x4380f4]
mov dword [esp + 0xc], edx
mov dword [esp + 8], 0
mov dword [esp + 4], 0x1501
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_SendMessageW]
call eax
sub esp, 0x10
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], 0x19
mov dword [esp + 0x18], 0xc8
mov dword [esp + 0x14], 0x32
mov dword [esp + 0x10], 0x32
mov dword [esp + 0xc], 0x50800021
mov dword [esp + 8], 0x42da80
mov dword [esp + 4], str.EDIT
mov dword [esp], 0
mov eax, dword [sym.imp.USER32.dll_CreateWindowExW]
call eax
sub esp, 0x30
mov dword [0x4380f8], eax
mov eax, dword [0x438044]
mov eax, dword [eax + 0xc]
mov edx, eax
mov eax, dword [0x4380f8]
mov dword [esp + 0xc], 1
mov dword [esp + 8], edx
mov dword [esp + 4], 0x30
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_SendMessageW]
call eax
sub esp, 0x10
mov edx, str.Password
mov eax, dword [0x4380f8]
mov dword [esp + 0xc], edx
mov dword [esp + 8], 0
mov dword [esp + 4], 0x1501
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_SendMessageW]
call eax
sub esp, 0x10
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], 0x64
mov dword [esp + 0x14], 0x55
mov dword [esp + 0x10], 0x64
mov dword [esp + 0xc], 0x50800001
mov dword [esp + 8], 0x42dab0
mov dword [esp + 4], 0x42dac0
mov dword [esp], 0
mov eax, dword [sym.imp.USER32.dll_CreateWindowExW]
call eax
sub esp, 0x30
mov dword [ebp - 0xc], eax
mov eax, dword [0x438044]
mov eax, dword [eax + 0xc]
mov dword [esp + 0xc], 1
mov dword [esp + 8], eax
mov dword [esp + 4], 0x30
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_SendMessageW]
call eax
sub esp, 0x10
jmp 0x4066c1
mov eax, dword [ebp + 0x10]
cmp ax, 1
jne 0x4066bd
mov eax, dword [0x4380f4]
mov dword [esp + 8], 0x32
mov dword [esp + 4], 0x438080
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_GetWindowTextA]
call eax
sub esp, 0xc
test eax, eax
je 0x4066c0
mov eax, dword [0x4380f8]
mov dword [esp + 8], 0x32
mov dword [esp + 4], 0x4380c0
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_GetWindowTextA]
call eax
sub esp, 0xc
test eax, eax
je 0x4066c0
mov eax, dword [0x438044]
mov eax, dword [eax + 8]
mov dword [esp + 8], 0x4380c0
mov dword [esp + 4], 0x438080
mov dword [esp], eax
call dbg.eboros_account_add
test eax, eax
je 0x406671
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x42dace
mov dword [esp + 4], str.Login_failed__Please_try_again_
mov dword [esp], 0
mov eax, dword [sym.imp.USER32.dll_MessageBoxW]
call eax
sub esp, 0x10
jmp 0x4066c1
mov eax, dword [ebp + 8]
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_DestroyWindow]
call eax
sub esp, 4
jmp 0x4066c0
mov dword [esp], 0
mov eax, dword [sym.imp.USER32.dll_PostQuitMessage]
call eax
sub esp, 4
jmp 0x4066c1
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_DefWindowProcW]
call eax
sub esp, 0x10
jmp 0x4066c6
nop
jmp 0x4066c1
nop
mov eax, 0
leave
ret 0x10