Function at 0x406af1
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x460
mov eax, dword [ebp + 8]
mov dword [ebp - 0x450], eax
mov ecx, dword [ebp - 0x450]
sub ecx, 0xc1d
mov dword [ebp - 0x450], ecx
cmp dword [ebp - 0x450], 0x21
ja case.0x406b30.5
mov eax, dword [ebp - 0x450]
xor edx, edx
mov dl, byte [eax + 0x407108]
jmp dword [edx*4 + 0x4070f0]
push 0x3e8
lea ecx, [ebp - 0x3e8]
push ecx
push 0xc3d
mov edx, dword [0x40f038]
push edx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea eax, [ebp - 0x3fc]
push eax
push 0x40ed28
lea ecx, [ebp - 0x3e8]
push ecx
call dword [sym.imp.MSVCRT.dll_sscanf]
add esp, 0xc
cmp eax, 1
je 0x406b8c
mov dword [ebp - 0x3fc], 0
jmp case.0x406b30.5
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x454], eax
cmp dword [ebp - 0x454], 0xffffffff
je 0x406bac
cmp dword [ebp - 0x454], 1
je 0x406bc5
jmp 0x406bdc
mov eax, dword [ebp - 0x3fc]
add eax, 1
cdq
mov ecx, 0x18
idiv ecx
mov dword [ebp - 0x3fc], edx
jmp 0x406bdc
mov eax, dword [ebp - 0x3fc]
add eax, 0x17
cdq
mov ecx, 0x18
idiv ecx
mov dword [ebp - 0x3fc], edx
mov edx, dword [ebp - 0x3fc]
push edx
push 0x40ed2c
lea eax, [ebp - 0x3e8]
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea ecx, [ebp - 0x3e8]
push ecx
push 0xc3d
mov edx, dword [0x40f038]
push edx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call fcn.0040981e
add esp, 8
jmp case.0x406b30.5
push 0x3e8
lea eax, [ebp - 0x3e8]
push eax
push 0xbe1
mov ecx, dword [0x40f038]
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea edx, [ebp - 0x3fc]
push edx
push 0x40ed30
lea eax, [ebp - 0x3e8]
push eax
call dword [sym.imp.MSVCRT.dll_sscanf]
add esp, 0xc
cmp eax, 1
je 0x406c74
mov dword [ebp - 0x3fc], 0
jmp case.0x406b30.5
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x10]
mov dword [ebp - 0x458], edx
cmp dword [ebp - 0x458], 0xffffffff
je 0x406c94
cmp dword [ebp - 0x458], 1
je 0x406cad
jmp 0x406cc4
mov eax, dword [ebp - 0x3fc]
add eax, 1
cdq
mov ecx, 0x3c
idiv ecx
mov dword [ebp - 0x3fc], edx
jmp 0x406cc4
mov eax, dword [ebp - 0x3fc]
add eax, 0x3b
cdq
mov ecx, 0x3c
idiv ecx
mov dword [ebp - 0x3fc], edx
mov edx, dword [ebp - 0x3fc]
push edx
push 0x40ed34
lea eax, [ebp - 0x3e8]
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea ecx, [ebp - 0x3e8]
push ecx
push 0xbe1
mov edx, dword [0x40f038]
push edx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call fcn.0040981e
add esp, 8
jmp case.0x406b30.5
push 0x3e8
lea eax, [ebp - 0x3e8]
push eax
push 0xbe3
mov ecx, dword [0x40f038]
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea edx, [ebp - 0x3fc]
push edx
push 0x40ed38
lea eax, [ebp - 0x3e8]
push eax
call dword [sym.imp.MSVCRT.dll_sscanf]
add esp, 0xc
cmp eax, 1
je 0x406d5c
mov dword [ebp - 0x3fc], 0
jmp case.0x406b30.5
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x10]
mov dword [ebp - 0x45c], edx
cmp dword [ebp - 0x45c], 0xffffffff
je 0x406d7c
cmp dword [ebp - 0x45c], 1
je 0x406d95
jmp 0x406dac
mov eax, dword [ebp - 0x3fc]
add eax, 1
cdq
mov ecx, 0x3c
idiv ecx
mov dword [ebp - 0x3fc], edx
jmp 0x406dac
mov eax, dword [ebp - 0x3fc]
add eax, 0x3b
cdq
mov ecx, 0x3c
idiv ecx
mov dword [ebp - 0x3fc], edx
mov edx, dword [ebp - 0x3fc]
push edx
push 0x40ed3c
lea eax, [ebp - 0x3e8]
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea ecx, [ebp - 0x3e8]
push ecx
push 0xbe3
mov edx, dword [0x40f038]
push edx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call fcn.0040981e
add esp, 8
jmp case.0x406b30.5
push 0x3e8
lea eax, [ebp - 0x3e8]
push eax
push 0xc33
mov ecx, dword [0x40f038]
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea edx, [ebp - 0x3f4]
push edx
push 0x40ed40
lea eax, [ebp - 0x3e8]
push eax
call dword [sym.imp.MSVCRT.dll_sscanf]
add esp, 0xc
cmp eax, 1
je 0x406e44
mov dword [ebp - 0x3f4], 0
jmp case.0x406b30.5
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x10]
mov dword [ebp - 0x460], edx
cmp dword [ebp - 0x460], 0xffffffff
je 0x406e64
cmp dword [ebp - 0x460], 1
je 0x406e78
jmp 0x406e8a
fld dword [ebp - 0x3f4]
fadd dword [0x40d214]
fstp dword [ebp - 0x3f4]
jmp 0x406e8a
fld dword [ebp - 0x3f4]
fsub dword [0x40d214]
fstp dword [ebp - 0x3f4]
fld dword [ebp - 0x3f4]
sub esp, 8
fstp qword [esp]
push 0x40ed44
lea eax, [ebp - 0x3e8]
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
lea ecx, [ebp - 0x3e8]
push ecx
push 0xc33
mov edx, dword [0x40f038]
push edx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call fcn.0040981e
add esp, 8
jmp case.0x406b30.5
mov eax, dword [ebp + 0xc]
cmp dword [eax + 8], 0xfffffffe
jne case.0x406b30.5
push 0
push 0
push 0x1042
push 0xc3b
mov ecx, dword [0x40f038]
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [0x40e848], eax
cmp dword [0x40e848], 0xffffffff
jne 0x406f14
jmp case.0x406b30.5
mov dword [ebp - 0x41c], 0
mov dword [ebp - 0x40c], 0x3e8
lea edx, [ebp - 0x3e8]
mov dword [ebp - 0x410], edx
lea eax, [ebp - 0x424]
push eax
mov ecx, dword [0x40e848]
push ecx
push 0x102d
push 0xc3b
mov edx, dword [0x40f038]
push edx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
lea eax, [ebp - 0x3ec]
push eax
lea ecx, [ebp - 0x3f8]
push ecx
lea edx, [ebp - 0x3f0]
push edx
push 0x40ed48
lea eax, [ebp - 0x3e8]
push eax
call dword [sym.imp.MSVCRT.dll_sscanf]
add esp, 0x14
mov ecx, dword [ebp - 0x3f0]
push ecx
push 0x40ed54
lea edx, [ebp - 0x3e8]
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea eax, [ebp - 0x3e8]
push eax
push 0xc3d
mov ecx, dword [0x40f038]
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call fcn.0040981e
add esp, 8
mov edx, dword [ebp - 0x3f8]
push edx
push 0x40ed58
lea eax, [ebp - 0x3e8]
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea ecx, [ebp - 0x3e8]
push ecx
push 0xbe1
mov edx, dword [0x40f038]
push edx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call fcn.0040981e
add esp, 8
mov eax, dword [ebp - 0x3ec]
push eax
push 0x40ed5c
lea ecx, [ebp - 0x3e8]
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea edx, [ebp - 0x3e8]
push edx
push 0xbe3
mov eax, dword [0x40f038]
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call fcn.0040981e
add esp, 8
mov dword [ebp - 0x444], 1
mov dword [ebp - 0x434], 0x3e8
lea ecx, [ebp - 0x3e8]
mov dword [ebp - 0x438], ecx
lea edx, [ebp - 0x44c]
push edx
mov eax, dword [0x40e848]
push eax
push 0x102d
push 0xc3b
mov ecx, dword [0x40f038]
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
lea edx, [ebp - 0x3f4]
push edx
push 0x40ed60
lea eax, [ebp - 0x3e8]
push eax
call dword [sym.imp.MSVCRT.dll_sscanf]
add esp, 0xc
fld dword [ebp - 0x3f4]
sub esp, 8
fstp qword [esp]
push 0x40ed64
lea ecx, [ebp - 0x3e8]
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
lea edx, [ebp - 0x3e8]
push edx
push 0xc33
mov eax, dword [0x40f038]
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call fcn.0040981e
add esp, 8
mov esp, ebp
pop ebp
ret