Function at 0x405ef0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x310c
call fcn.00408f70
mov eax, dword [0x4165e0]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0xffffffff
push 0x3ff
lea eax, [ebp - 0x30f8]
push eax
push 0x3e9
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_GetDlgItemTextW]
push 0x20
lea edx, [ebp - 0x850]
push edx
mov eax, dword [0x4172b4]
add eax, 0x18
push eax
call fcn.004017f0
add esp, 0xc
push 0x1898
push 0
lea ecx, [ebp - 0x28f8]
push ecx
call fcn.00407180
add esp, 0xc
mov edx, dword [ebp + 8]
mov dword [ebp - 0x28f8], edx
push 0x20
lea eax, [ebp - 0x20e8]
push eax
mov ecx, dword [0x4172b4]
add ecx, 0x58
push ecx
call fcn.004017f0
add esp, 0xc
mov edx, dword [0x4172b4]
movsx eax, byte [edx + 0x78]
test eax, eax
je 0x405fe3
mov ecx, dword [0x4172b4]
movsx edx, byte [ecx + 0x78]
and edx, 2
je 0x405fbe
call fcn.00405e90
movzx eax, al
test eax, eax
je 0x405fbe
push 4
lea ecx, [ebp - 0x2068]
push ecx
push 0x41652c
call fcn.00401da0
add esp, 0xc
jmp 0x405fe3
mov edx, dword [0x4172b4]
movsx eax, byte [edx + 0x78]
and eax, 1
je 0x405fe3
push 4
lea ecx, [ebp - 0x2068]
push ecx
push 0x416524
call fcn.00401da0
add esp, 0xc
push 0x3fe
lea edx, [ebp - 0x28e8]
push edx
push 0x408
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_GetDlgItemTextW]
movzx ecx, word [ebp - 0x28e8]
test ecx, ecx
je 0x40649a
push 0x7f02
push 0
call dword [sym.imp.USER32.dll_LoadCursorW]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
mov dword [ebp - 0x854], eax
push 1
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
lea edx, [ebp - 0x28e8]
push edx
call fcn.004021f0
add esp, 4
lea eax, [ebp - 0x28e8]
push eax
call fcn.00405c10
add esp, 4
lea ecx, [ebp - 0x28f8]
push ecx
push 0x405450
mov edx, dword [0x4172b4]
add edx, 0x8ba
push edx
call fcn.00402f90
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4060be
mov eax, dword [ebp - 0x854]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
cmp dword [ebp - 4], 0
jle 0x40609e
push 0
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00404ea0
add esp, 0xc
jmp 0x4060bc
push 0x10
mov eax, dword [0x4172b4]
add eax, 0x8ba
push eax
push 0xbb9
mov ecx, dword [ebp + 8]
push ecx
call fcn.00401ed0
add esp, 0x10
jmp 0x406124
push 0x412ad0
push 0x417
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
lea eax, [ebp - 0x28e8]
push eax
call fcn.00405860
add esp, 4
movzx ecx, word [ebp - 0x2060]
test ecx, ecx
je 0x406124
lea edx, [ebp - 0x1860]
push edx
lea eax, [ebp - 0x28e8]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004023b0
add esp, 0xc
mov dword [ebp - 4], eax
push 0x400
lea edx, [ebp - 0x28e8]
push edx
lea eax, [ebp - 0x1860]
push eax
call fcn.00401da0
add esp, 0xc
cmp dword [ebp - 4], 0
jne 0x406176
movzx ecx, word [ebp - 0x20e8]
test ecx, ecx
je 0x40616d
push 0x400
lea edx, [ebp - 0x808]
push edx
lea eax, [ebp - 0x28e8]
push eax
call fcn.00401da0
add esp, 0xc
push 0x400
lea ecx, [ebp - 0x808]
push ecx
lea edx, [ebp - 0x20e8]
push edx
call fcn.00401cf0
add esp, 0xc
jmp 0x406176
xor eax, eax
mov word [ebp - 0x808], ax
cmp dword [ebp - 4], 0
jne 0x40629d
push 0x3f2
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
mov dword [ebp - 0x30fc], eax
cmp dword [ebp - 0x30fc], 0
je 0x40629d
push 0
push 0
push 0x1004
mov edx, dword [ebp - 0x30fc]
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp - 0x310c], eax
mov byte [ebp - 0x3100], 0
push 0x404
lea eax, [ebp - 0x1060]
push eax
lea ecx, [ebp - 0x808]
push ecx
call fcn.00401da0
add esp, 0xc
lea edx, [ebp - 0x1060]
push edx
call fcn.00401a40
add esp, 4
mov dword [ebp - 0x80c], 0
jmp 0x40620a
mov eax, dword [ebp - 0x80c]
add eax, 1
mov dword [ebp - 0x80c], eax
mov ecx, dword [ebp - 0x80c]
cmp ecx, dword [ebp - 0x310c]
jge 0x40629d
push 0xf000
mov edx, dword [ebp - 0x80c]
push edx
push 0x102c
mov eax, dword [ebp - 0x30fc]
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
shr eax, 0xc
sub eax, 1
jne 0x406298
mov ecx, dword [ebp - 0x80c]
push ecx
mov edx, dword [ebp - 0x30fc]
push edx
call fcn.00403c10
add esp, 8
mov dword [ebp - 0x3108], eax
cmp dword [ebp - 0x3108], 0x5355
je 0x406298
push 4
lea eax, [ebp - 0x3108]
push eax
lea ecx, [ebp - 0x3104]
push ecx
call fcn.00407580
add esp, 0xc
lea edx, [ebp - 0x3104]
push edx
lea eax, [ebp - 0x1060]
push eax
call fcn.00405ce0
add esp, 8
jmp 0x4061fb
cmp dword [ebp - 4], 0
jne 0x40649a
lea ecx, [ebp - 0x28e8]
push ecx
call fcn.00405160
add esp, 4
movzx edx, word [ebp - 0x20a8]
test edx, edx
je 0x40630d
push 0x404
lea eax, [ebp - 0x1060]
push eax
lea ecx, [ebp - 0x28e8]
push ecx
call fcn.00401da0
add esp, 0xc
push 0x404
lea edx, [ebp - 0x1060]
push edx
lea eax, [ebp - 0x20a8]
push eax
call fcn.00401cf0
add esp, 0xc
lea ecx, [ebp - 0x808]
push ecx
lea edx, [ebp - 0x1060]
push edx
call fcn.00405210
add esp, 8
movzx eax, word [ebp - 0x20e8]
test eax, eax
je 0x4063cd
push 0x411
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_IsDlgButtonChecked]
cmp eax, 1
jne 0x406343
lea edx, [ebp - 0x28f8]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00405a00
add esp, 8
push 0x404
lea ecx, [ebp - 0x1060]
push ecx
lea edx, [ebp - 0x28e8]
push edx
call fcn.00401da0
add esp, 0xc
push 0x404
lea eax, [ebp - 0x1060]
push eax
lea ecx, [ebp - 0x20e8]
push ecx
call fcn.00401cf0
add esp, 0xc
push 0x412
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_IsDlgButtonChecked]
cmp eax, 1
jne 0x4063a3
lea eax, [ebp - 0x850]
push eax
lea ecx, [ebp - 0x1060]
push ecx
call fcn.004036b0
add esp, 8
push 0x413
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_IsDlgButtonChecked]
cmp eax, 1
jne 0x4063cd
lea eax, [ebp - 0x850]
push eax
lea ecx, [ebp - 0x1060]
push ecx
call fcn.004037c0
add esp, 8
movzx edx, word [ebp - 0x2060]
test edx, edx
je 0x4063e7
lea eax, [ebp - 0x2060]
push eax
call fcn.00402420
add esp, 4
mov ecx, dword [ebp - 0x854]
push ecx
call dword [sym.imp.USER32.dll_SetCursor]
push 0x404
lea edx, [ebp - 0x1060]
push edx
lea eax, [ebp - 0x850]
push eax
call fcn.00401da0
add esp, 0xc
lea ecx, [ebp - 0x1060]
push ecx
call fcn.004072d4
add esp, 4
mov dword [ebp - 0x80c], eax
mov edx, dword [ebp - 0x80c]
add edx, 0xa
cmp edx, 0x404
jae 0x40649a
mov eax, 0x404
sub eax, dword [ebp - 0x80c]
sub eax, 1
push eax
mov ecx, dword [ebp - 0x80c]
lea edx, [ebp + ecx*2 - 0x1060]
push edx
push 0xbb8
mov eax, dword [0x4172b4]
mov ecx, dword [eax + 0xc]
push ecx
call fcn.00401370
add esp, 0x10
push 0x400
lea edx, [ebp - 0x30f8]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0x40
lea ecx, [ebp - 0x30f8]
push ecx
lea edx, [ebp - 0x1060]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00401e60
add esp, 0x10
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0040716f
mov esp, ebp
pop ebp
ret