Function at 0x408c00
Capabilities:
Get graphical window text

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x338
mov eax, dword [ecx + 4]
mov edi, dword [ecx]
mov ebx, dword [ecx + 8]
cmp eax, 0x110
je 0x408c78
cmp eax, 0x111
je 0x408c40
lea esp, [ebp - 0x10]
xor eax, eax
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x10
movzx eax, bx
cmp bx, 1
je 0x408f50
cmp eax, 2
jne 0x408c2d
mov dword [esp + 4], ebx
mov dword [esp], edi
call sym._EndDialog_8
mov eax, 1
sub esp, 8
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x10
mov dword [esp], 0
lea esi, [ebp - 0x216]
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
sub esp, 4
mov dword [ebp - 0x310], eax
mov dword [esp], edi
mov dword [esp + 4], 0x7db
call sym._GetDlgItem_8
sub esp, 8
mov ebx, eax
mov dword [esp], edi
mov dword [esp + 4], 0x7d8
call sym._GetDlgItem_8
sub esp, 8
mov dword [ebp - 0x314], eax
mov dword [esp], edi
mov dword [esp + 4], 0x7d9
call sym._GetDlgItem_8
sub esp, 8
mov dword [ebp - 0x318], eax
mov dword [esp], edi
mov dword [esp + 4], 0x7da
call sym._GetDlgItem_8
sub esp, 8
mov edi, eax
mov dword [esp + 0xc], 0xff
mov dword [esp + 8], esi
mov dword [esp + 4], 0x588
mov eax, dword [ebp - 0x310]
mov dword [esp], eax
call sym._LoadStringW_16
sub esp, 0x10
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0
mov dword [esp + 4], 0x143
mov dword [esp], ebx
call sym._SendMessageW_16
sub esp, 0x10
mov dword [esp + 0xc], 0xff
mov dword [esp + 8], esi
mov dword [esp + 4], 0x589
mov eax, dword [ebp - 0x310]
mov dword [esp], eax
call sym._LoadStringW_16
sub esp, 0x10
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0
mov dword [esp + 4], 0x143
mov dword [esp], ebx
call sym._SendMessageW_16
sub esp, 0x10
mov dword [esp + 0xc], 0xff
mov dword [esp + 8], esi
mov dword [esp + 4], 0x58a
mov eax, dword [ebp - 0x310]
mov dword [esp], eax
call sym._LoadStringW_16
sub esp, 0x10
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0
mov dword [esp + 4], 0x143
mov dword [esp], ebx
call sym._SendMessageW_16
lea eax, [ebp - 0x2d4]
mov dword [ebp - 0x2d4], 0xbc
mov dword [ebp - 0x2d0], 0xf
sub esp, 0x10
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0x43d
mov eax, dword [0x41a704]
mov dword [esp], eax
call sym._SendMessageW_16
movzx edx, word [ebp - 0x2bc]
mov eax, 1
sub esp, 0x10
cmp dx, 2
je 0x408e17
xor eax, eax
cmp dx, 3
sete al
add eax, eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], eax
mov dword [esp + 4], 0x14e
mov dword [esp], ebx
call sym._SendMessageW_16
sub esp, 0x10
mov dword [esp + 0x14], 0x4196a0
mov eax, dword [ebp - 0x2c0]
add eax, dword [ebp - 0x2c8]
mov dword [ebp - 0x310], eax
fild dword [ebp - 0x310]
fdiv dword [0x411d38]
mov dword [esp + 8], str._.2f__s
mov dword [esp + 4], 0xff
mov dword [esp], esi
fmul dword [0x411d3c]
fdiv dword [0x411d40]
fstp qword [esp + 0xc]
call sym._swprintf.constprop.0
mov dword [esp + 4], esi
mov eax, dword [ebp - 0x314]
mov dword [esp], eax
call sym._SetWindowTextW_8
sub esp, 8
mov dword [esp + 0x14], 0x4196a0
fild dword [ebp - 0x2c4]
fdiv dword [0x411d38]
mov dword [esp + 8], str._.2f__s
mov dword [esp + 4], 0xff
mov dword [esp], esi
fmul dword [0x411d3c]
fdiv dword [0x411d40]
fstp qword [esp + 0xc]
call sym._swprintf.constprop.0
mov dword [esp + 4], esi
mov eax, dword [ebp - 0x318]
mov dword [esp], eax
call sym._SetWindowTextW_8
sub esp, 8
mov dword [esp + 0x14], 0x4196a0
mov eax, dword [ebp - 0x2c0]
neg eax
mov dword [ebp - 0x310], eax
fild dword [ebp - 0x310]
fdiv dword [0x411d38]
mov dword [esp + 8], str._.2f__s
mov dword [esp + 4], 0xff
mov dword [esp], esi
fmul dword [0x411d3c]
fdiv dword [0x411d40]
fstp qword [esp + 0xc]
call sym._swprintf.constprop.0
mov dword [esp + 4], esi
mov dword [esp], edi
call sym._SetWindowTextW_8
sub esp, 8
jmp 0x408c2d
mov dword [esp + 4], 0x7db
mov dword [esp], edi
call sym._GetDlgItem_8
sub esp, 8
mov esi, eax
mov dword [esp + 4], 0x7d8
mov dword [esp], edi
call sym._GetDlgItem_8
sub esp, 8
mov dword [ebp - 0x310], eax
mov dword [esp + 4], 0x7d9
mov dword [esp], edi
call sym._GetDlgItem_8
sub esp, 8
mov dword [ebp - 0x318], eax
mov dword [esp + 4], 0x7da
mov dword [esp], edi
call sym._GetDlgItem_8
mov dword [ebp - 0x2d4], 0xbc
mov dword [ebp - 0x31c], eax
sub esp, 8
lea eax, [ebp - 0x2d4]
mov dword [ebp - 0x2d0], 0x20
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0x43d
mov eax, dword [0x41a704]
mov dword [esp], eax
call sym._SendMessageW_16
mov dword [ebp - 0x314], 0
sub esp, 0x10
test byte [ebp - 0x2d0], 0x20
je 0x409014
xor eax, eax
cmp word [ebp - 0x2cc], 0
setne al
mov dword [ebp - 0x314], eax
mov dword [esp], esi
lea esi, [ebp - 0x216]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x147
call sym._SendMessageW_16
movzx eax, word [eax + eax + 0x411b28]
sub esp, 0x10
mov word [ebp - 0x2bc], ax
mov dword [esp + 8], 0xff
mov dword [esp + 4], esi
mov eax, dword [ebp - 0x310]
mov dword [esp], eax
call sym._GetWindowTextW_12
lea ecx, [ebp - 0x300]
lea edx, [ebp - 0x304]
mov eax, esi
sub esp, 0xc
call dbg.number_from_string
fld dword [ebp - 0x304]
test eax, eax
setne al
movzx eax, al
mov dword [ebp - 0x310], eax
mov eax, dword [ebp - 0x300]
cmp eax, 1
je 0x4094c0
cmp eax, 2
je 0x4094b0
xor edx, edx
test eax, eax
je 0x409370
fstp st(0)
mov dword [ebp - 0x2c0], edx
mov dword [esp + 8], 0xff
mov dword [esp + 4], esi
mov eax, dword [ebp - 0x318]
mov dword [esp], eax
call sym._GetWindowTextW_12
lea ecx, [ebp - 0x300]
lea edx, [ebp - 0x304]
mov eax, esi
sub esp, 0xc
call dbg.number_from_string
fld dword [ebp - 0x304]
cmp eax, 1
mov eax, dword [ebp - 0x300]
sbb dword [ebp - 0x310], 0xffffffff
cmp eax, 1
je 0x409470
cmp eax, 2
je 0x409460
xor edx, edx
test eax, eax
je 0x409320
fstp st(0)
mov dword [ebp - 0x2c4], edx
mov dword [esp + 8], 0xff
mov dword [esp + 4], esi
mov eax, dword [ebp - 0x31c]
mov dword [esp], eax
call sym._GetWindowTextW_12
lea ecx, [ebp - 0x300]
lea edx, [ebp - 0x304]
mov eax, esi
sub esp, 0xc
call dbg.number_from_string
test eax, eax
je 0x409230
mov edx, dword [ebp - 0x310]
mov eax, dword [ebp - 0x300]
fld dword [ebp - 0x304]
add edx, 1
cmp eax, 1
je 0x4093f8
cmp eax, 2
je 0x409570
test eax, eax
je 0x409520
fstp st(0)
mov dword [ebp - 0x2c8], 0
cmp edx, 3
jne 0x409291
mov edx, dword [ebp - 0x2c0]
mov ecx, edx
test edx, edx
js 0x409500
mov eax, dword [ebp - 0x2c8]
add edx, eax
neg eax
mov dword [ebp - 0x2c8], edx
mov edx, dword [ebp - 0x314]
mov dword [ebp - 0x2c0], eax
mov dword [ebp - 0x2d4], 0xbc
mov dword [ebp - 0x2d0], 0xf
test edx, edx
je 0x4091fc
mov dword [ebp - 0x2d0], 0x400f
xor edx, edx
test eax, eax
cmovs eax, edx
mov word [ebp - 0x220], ax
lea eax, [ebp - 0x2d4]
mov dword [esp + 8], 0
mov dword [esp + 0xc], eax
mov dword [esp + 4], 0x447
mov eax, dword [0x41a704]
mov dword [esp], eax
call sym._SendMessageW_16
sub esp, 0x10
jmp 0x408c52
mov eax, dword [ebp - 0x300]
fld dword [ebp - 0x304]
cmp eax, 1
je 0x4093c0
cmp eax, 2
je 0x409510
test eax, eax
jne 0x40957a
fmul dword [0x411d40]
fdiv dword [0x411d3c]
fmul dword [0x411d38]
fnstcw word [ebp - 0x30a]
movzx eax, word [ebp - 0x30a]
or ah, 0xc
mov word [ebp - 0x30c], ax
fldcw word [ebp - 0x30c]
fistp dword [ebp - 0x2c8]
fldcw word [ebp - 0x30a]
mov dword [ebp - 0x2fc], 0x28
mov eax, dword [0x41a708]
mov dword [ebp - 0x2f8], eax
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
mov dword [ebp - 0x2f0], 0x6a9
mov dword [ebp - 0x2f4], eax
sub esp, 4
lea eax, [ebp - 0x2fc]
mov dword [ebp - 0x2ec], 0x411d18
mov dword [ebp - 0x2e8], 0x40
mov dword [ebp - 0x2e4], 0
mov dword [ebp - 0x2e0], 0
mov dword [ebp - 0x2dc], 0
mov dword [ebp - 0x2d8], 0
mov dword [esp], eax
call sym._MessageBoxIndirectW_4
sub esp, 4
jmp 0x408c2d
fmul dword [0x411d40]
fdiv dword [0x411d3c]
fmul dword [0x411d38]
fnstcw word [ebp - 0x30a]
movzx eax, word [ebp - 0x30a]
or ah, 0xc
mov word [ebp - 0x30c], ax
fldcw word [ebp - 0x30c]
fistp dword [ebp - 0x318]
fldcw word [ebp - 0x30a]
mov edx, dword [ebp - 0x318]
jmp 0x40911e
fmul dword [0x411d40]
fdiv dword [0x411d3c]
fmul dword [0x411d38]
fnstcw word [ebp - 0x30a]
movzx eax, word [ebp - 0x30a]
or ah, 0xc
mov word [ebp - 0x30c], ax
fldcw word [ebp - 0x30c]
fistp dword [ebp - 0x320]
fldcw word [ebp - 0x30a]
mov edx, dword [ebp - 0x320]
jmp 0x4090b4
fnstcw word [ebp - 0x30a]
fmul dword [0x411d38]
movzx eax, word [ebp - 0x30a]
or ah, 0xc
mov word [ebp - 0x30c], ax
fldcw word [ebp - 0x30c]
fistp dword [ebp - 0x2c8]
fldcw word [ebp - 0x30a]
jmp 0x409291
fnstcw word [ebp - 0x30a]
fmul dword [0x411d38]
movzx eax, word [ebp - 0x30a]
or ah, 0xc
mov word [ebp - 0x30c], ax
fldcw word [ebp - 0x30c]
fistp dword [ebp - 0x310]
fldcw word [ebp - 0x30a]
mov eax, dword [ebp - 0x310]
mov dword [ebp - 0x2c8], eax
cmp edx, 3
jne 0x409291
mov edx, dword [ebp - 0x2c0]
lea ecx, [edx + eax]
test ecx, eax
jns 0x4091a8
neg eax
xor edx, edx
jmp 0x4091ba
fld qword [0x411d48]
fmulp st(1)
jmp 0x409332
fnstcw word [ebp - 0x30a]
fmul dword [0x411d38]
movzx eax, word [ebp - 0x30a]
or ah, 0xc
mov word [ebp - 0x30c], ax
fldcw word [ebp - 0x30c]
fistp dword [ebp - 0x318]
fldcw word [ebp - 0x30a]
mov edx, dword [ebp - 0x318]
jmp 0x40911e
fld qword [0x411d48]
fmulp st(1)
jmp 0x409382
fnstcw word [ebp - 0x30a]
fmul dword [0x411d38]
movzx eax, word [ebp - 0x30a]
or ah, 0xc
mov word [ebp - 0x30c], ax
fldcw word [ebp - 0x30c]
fistp dword [ebp - 0x320]
fldcw word [ebp - 0x30a]
mov edx, dword [ebp - 0x320]
jmp 0x4090b4
xor edx, edx
test ecx, ecx
cmovns edx, ecx
mov eax, edx
neg eax
jmp 0x4091ba
fld qword [0x411d48]
fmulp st(1)
jmp 0x409268
fmul dword [0x411d40]
fdiv dword [0x411d3c]
fmul dword [0x411d38]
fnstcw word [ebp - 0x30a]
movzx eax, word [ebp - 0x30a]
or ah, 0xc
mov word [ebp - 0x30c], ax
fldcw word [ebp - 0x30c]
fistp dword [ebp - 0x310]
fldcw word [ebp - 0x30a]
mov eax, dword [ebp - 0x310]
jmp 0x40942d
fld qword [0x411d48]
fmulp st(1)
jmp 0x409532
fstp st(0)
mov dword [ebp - 0x2c8], 0
jmp 0x409291