Function at 0x405b4d
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1898
call fcn.00407290
mov dword [ebp - 0x808], 0xffffffff
push 0x3ff
lea eax, [ebp - 0x1880]
push eax
push 0x3e9
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_GetDlgItemTextA]
push 0x20
lea edx, [ebp - 0x1480]
push edx
mov eax, dword [0x41371c]
add eax, 0x18
push eax
call fcn.00401739
add esp, 0xc
push 0xc54
push 0
lea ecx, [ebp - 0x145c]
push ecx
call fcn.00406c10
add esp, 0xc
mov edx, dword [ebp + 8]
mov dword [ebp - 0x145c], edx
push 0x20
lea eax, [ebp - 0x104c]
push eax
mov ecx, dword [0x41371c]
add ecx, 0x58
push ecx
call fcn.00401739
add esp, 0xc
mov edx, dword [0x41371c]
movsx eax, byte [edx + 0x78]
test eax, eax
je 0x405c3f
mov ecx, dword [0x41371c]
movsx edx, byte [ecx + 0x78]
and edx, 2
test edx, edx
je 0x405c18
call fcn.00405aed
and eax, 0xff
test eax, eax
je 0x405c18
push 4
lea eax, [ebp - 0x100c]
push eax
push 0x410c1c
call fcn.00401c46
add esp, 0xc
jmp 0x405c3f
mov ecx, dword [0x41371c]
movsx edx, byte [ecx + 0x78]
and edx, 1
test edx, edx
je 0x405c3f
push 4
lea eax, [ebp - 0x100c]
push eax
push 0x410c18
call fcn.00401c46
add esp, 0xc
push 0x3fe
lea ecx, [ebp - 0x144c]
push ecx
push 0x408
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_GetDlgItemTextA]
movsx eax, byte [ebp - 0x144c]
test eax, eax
je 0x406110
push 0x7f02
push 0
call dword [sym.imp.USER32.dll_LoadCursorA]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
mov dword [ebp - 0x1460], eax
push 1
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
lea ecx, [ebp - 0x144c]
push ecx
call fcn.00402044
add esp, 4
lea edx, [ebp - 0x144c]
push edx
call fcn.004058ad
add esp, 4
lea eax, [ebp - 0x145c]
push eax
push 0x405137
mov ecx, dword [0x41371c]
add ecx, 0x499
push ecx
call fcn.00402dc0
add esp, 0xc
mov dword [ebp - 0x808], eax
cmp dword [ebp - 0x808], 0
je 0x405d28
mov edx, dword [ebp - 0x1460]
push edx
call dword [sym.imp.USER32.dll_SetCursor]
cmp dword [ebp - 0x808], 0
jle 0x405d06
push 0
mov eax, dword [ebp - 0x808]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00404c06
add esp, 0xc
jmp 0x405d26
push 0x10
mov edx, dword [0x41371c]
add edx, 0x499
push edx
push 0xbb9
mov eax, dword [ebp + 8]
push eax
call fcn.00401d59
add esp, 0x10
jmp 0x405d91
push 0x413724
push 0x417
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
lea edx, [ebp - 0x144c]
push edx
call fcn.00405563
add esp, 4
movsx eax, byte [ebp - 0x1008]
test eax, eax
je 0x405d91
lea ecx, [ebp - 0xc08]
push ecx
lea edx, [ebp - 0x144c]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00402202
add esp, 0xc
mov dword [ebp - 0x808], eax
push 0x400
lea ecx, [ebp - 0x144c]
push ecx
lea edx, [ebp - 0xc08]
push edx
call fcn.00401c46
add esp, 0xc
cmp dword [ebp - 0x808], 0
jne 0x405de4
movsx eax, byte [ebp - 0x104c]
test eax, eax
je 0x405ddd
push 0x400
lea ecx, [ebp - 0x400]
push ecx
lea edx, [ebp - 0x144c]
push edx
call fcn.00401c46
add esp, 0xc
push 0x400
lea eax, [ebp - 0x400]
push eax
lea ecx, [ebp - 0x104c]
push ecx
call fcn.00401ba2
add esp, 0xc
jmp 0x405de4
mov byte [ebp - 0x400], 0
cmp dword [ebp - 0x808], 0
jne 0x405f10
push 0x3f2
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_GetDlgItem]
mov dword [ebp - 0x1888], eax
cmp dword [ebp - 0x1888], 0
je 0x405f10
push 0
push 0
push 0x1004
mov eax, dword [ebp - 0x1888]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [ebp - 0x1898], eax
mov byte [ebp - 0x188c], 0
push 0x404
lea ecx, [ebp - 0x804]
push ecx
lea edx, [ebp - 0x400]
push edx
call fcn.00401c46
add esp, 0xc
lea eax, [ebp - 0x804]
push eax
call fcn.00401923
add esp, 4
mov dword [ebp - 0x1884], 0
jmp 0x405e7b
mov ecx, dword [ebp - 0x1884]
add ecx, 1
mov dword [ebp - 0x1884], ecx
mov edx, dword [ebp - 0x1884]
cmp edx, dword [ebp - 0x1898]
jge 0x405f10
push 0xf000
mov eax, dword [ebp - 0x1884]
push eax
push 0x102c
mov ecx, dword [ebp - 0x1888]
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
shr eax, 0xc
sub eax, 1
test eax, eax
jne 0x405f0b
mov edx, dword [ebp - 0x1884]
push edx
mov eax, dword [ebp - 0x1888]
push eax
call fcn.004039ae
add esp, 8
mov dword [ebp - 0x1894], eax
cmp dword [ebp - 0x1894], 0x5355
je 0x405f0b
push 4
lea ecx, [ebp - 0x1894]
push ecx
lea edx, [ebp - 0x1890]
push edx
call fcn.00406ea0
add esp, 0xc
lea eax, [ebp - 0x1890]
push eax
lea ecx, [ebp - 0x804]
push ecx
call fcn.00405960
add esp, 8
jmp 0x405e6c
cmp dword [ebp - 0x808], 0
jne 0x406110
lea edx, [ebp - 0x144c]
push edx
call fcn.00404e9b
add esp, 4
movsx eax, byte [ebp - 0x102c]
test eax, eax
je 0x405f83
push 0x404
lea ecx, [ebp - 0x804]
push ecx
lea edx, [ebp - 0x144c]
push edx
call fcn.00401c46
add esp, 0xc
push 0x404
lea eax, [ebp - 0x804]
push eax
lea ecx, [ebp - 0x102c]
push ecx
call fcn.00401ba2
add esp, 0xc
lea edx, [ebp - 0x400]
push edx
lea eax, [ebp - 0x804]
push eax
call fcn.00404f28
add esp, 8
movsx ecx, byte [ebp - 0x104c]
test ecx, ecx
je 0x406043
push 0x411
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_IsDlgButtonChecked]
cmp eax, 1
jne 0x405fb9
lea eax, [ebp - 0x145c]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004056bf
add esp, 8
push 0x404
lea edx, [ebp - 0x804]
push edx
lea eax, [ebp - 0x144c]
push eax
call fcn.00401c46
add esp, 0xc
push 0x404
lea ecx, [ebp - 0x804]
push ecx
lea edx, [ebp - 0x104c]
push edx
call fcn.00401ba2
add esp, 0xc
push 0x412
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_IsDlgButtonChecked]
cmp eax, 1
jne 0x406019
lea ecx, [ebp - 0x1480]
push ecx
lea edx, [ebp - 0x804]
push edx
call fcn.004034e4
add esp, 8
push 0x413
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_IsDlgButtonChecked]
cmp eax, 1
jne 0x406043
lea ecx, [ebp - 0x1480]
push ecx
lea edx, [ebp - 0x804]
push edx
call fcn.004035cc
add esp, 8
movsx eax, byte [ebp - 0x1008]
test eax, eax
je 0x40605d
lea ecx, [ebp - 0x1008]
push ecx
call fcn.00402260
add esp, 4
mov edx, dword [ebp - 0x1460]
push edx
call dword [sym.imp.USER32.dll_SetCursor]
push 0x404
lea eax, [ebp - 0x804]
push eax
lea ecx, [ebp - 0x1480]
push ecx
call fcn.00401c46
add esp, 0xc
lea edx, [ebp - 0x804]
push edx
call fcn.00406c90
add esp, 4
mov dword [ebp - 0x1884], eax
mov eax, dword [ebp - 0x1884]
add eax, 0xa
cmp eax, 0x404
jae 0x406110
mov ecx, 0x404
sub ecx, dword [ebp - 0x1884]
sub ecx, 1
push ecx
mov edx, dword [ebp - 0x1884]
lea eax, [ebp + edx - 0x804]
push eax
push 0xbb8
mov ecx, dword [0x41371c]
mov edx, dword [ecx + 0xc]
push edx
call fcn.00401359
add esp, 0x10
push 0x400
lea eax, [ebp - 0x1880]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0x40
lea edx, [ebp - 0x1880]
push edx
lea eax, [ebp - 0x804]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00401cf1
add esp, 0x10
mov eax, dword [ebp - 0x808]
mov esp, ebp
pop ebp
ret