Function at 0x4098a0
Capabilities:
Get graphical window text

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff8
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x320
mov eax, dword [ecx + 4]
mov esi, dword [ecx]
mov ebx, dword [ecx + 8]
cmp eax, 0x110
je 0x4098f8
cmp eax, 0x111
jne 0x4098e3
movzx eax, bx
cmp bx, 1
je 0x409c08
cmp eax, 2
je 0x409f04
lea esp, [ebp - 0x10]
xor eax, eax
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x10
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
mov edi, dword [sym.imp.user32.dll_GetDlgItem]
sub esp, 4
mov dword [ebp - 0x304], eax
mov dword [esp], esi
mov dword [esp + 4], 0x7db
call edi
sub esp, 8
mov ebx, eax
mov dword [esp], esi
mov dword [esp + 4], 0x7d8
call edi
sub esp, 8
mov dword [ebp - 0x308], eax
mov dword [esp], esi
mov dword [esp + 4], 0x7d9
call edi
sub esp, 8
mov dword [ebp - 0x30c], eax
mov dword [esp], esi
mov dword [esp + 4], 0x7da
call edi
lea edi, [ebp - 0x20e]
mov esi, dword [sym.imp.user32.dll_LoadStringW]
mov dword [ebp - 0x310], eax
mov eax, dword [ebp - 0x304]
sub esp, 8
mov dword [esp + 0xc], 0xff
mov dword [esp + 8], edi
mov dword [esp + 4], 0x588
mov dword [esp], eax
call esi
mov eax, dword [sym.imp.user32.dll_SendMessageW]
sub esp, 0x10
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0
mov dword [esp + 4], 0x143
mov dword [esp], ebx
mov dword [ebp - 0x300], eax
call eax
mov edx, dword [ebp - 0x304]
sub esp, 0x10
mov dword [esp], edx
mov dword [esp + 0xc], 0xff
mov dword [esp + 8], edi
mov dword [esp + 4], 0x589
call esi
mov eax, dword [ebp - 0x300]
sub esp, 0x10
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0
mov dword [esp + 4], 0x143
mov dword [esp], ebx
call eax
mov edx, dword [ebp - 0x304]
sub esp, 0x10
mov dword [esp], edx
mov dword [esp + 0xc], 0xff
mov dword [esp + 8], edi
mov dword [esp + 4], 0x58a
call esi
mov esi, dword [ebp - 0x300]
sub esp, 0x10
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0
mov dword [esp + 4], 0x143
mov dword [esp], ebx
call esi
lea eax, [ebp - 0x2cc]
mov dword [ebp - 0x2cc], 0xbc
mov dword [ebp - 0x2c8], 0xf
sub esp, 0x10
mov dword [esp + 0xc], eax
mov eax, dword [0x410cb0]
mov dword [esp + 8], 0
mov dword [esp + 4], 0x43d
mov dword [esp], eax
call esi
movzx edx, word [ebp - 0x2b4]
mov eax, 1
sub esp, 0x10
cmp dx, 2
je 0x409a9d
xor eax, eax
cmp dx, 3
sete al
add eax, eax
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x300]
mov dword [esp], ebx
mov dword [esp + 0xc], 0
mov dword [esp + 4], 0x14e
call eax
mov eax, dword [ebp - 0x2b8]
pxor xmm0, xmm0
add eax, dword [ebp - 0x2c0]
sub esp, 0x10
cvtsi2ss xmm0, eax
divss xmm0, dword [0x413630]
mov dword [esp], edi
mulss xmm0, dword [0x413634]
mov dword [esp + 0x14], 0x411060
divss xmm0, dword [0x413638]
cvtss2sd xmm0, xmm0
mov dword [esp + 8], str._.2f__s
mov dword [esp + 4], 0xff
movsd qword [esp + 0xc], xmm0
call sym._swprintf.constprop.0
mov eax, dword [ebp - 0x308]
mov ebx, dword [sym.imp.user32.dll_SetWindowTextW]
mov dword [esp + 4], edi
mov dword [esp], eax
call ebx
pxor xmm0, xmm0
sub esp, 8
cvtsi2ss xmm0, dword [ebp - 0x2bc]
divss xmm0, dword [0x413630]
mov dword [esp], edi
mulss xmm0, dword [0x413634]
mov dword [esp + 0x14], 0x411060
divss xmm0, dword [0x413638]
cvtss2sd xmm0, xmm0
mov dword [esp + 8], str._.2f__s
mov dword [esp + 4], 0xff
movsd qword [esp + 0xc], xmm0
call sym._swprintf.constprop.0
mov eax, dword [ebp - 0x30c]
mov dword [esp + 4], edi
mov dword [esp], eax
call ebx
mov eax, dword [ebp - 0x2b8]
pxor xmm0, xmm0
sub esp, 8
mov dword [esp], edi
neg eax
mov dword [esp + 0x14], 0x411060
cvtsi2ss xmm0, eax
divss xmm0, dword [0x413630]
mulss xmm0, dword [0x413634]
mov dword [esp + 8], str._.2f__s
divss xmm0, dword [0x413638]
cvtss2sd xmm0, xmm0
mov dword [esp + 4], 0xff
movsd qword [esp + 0xc], xmm0
call sym._swprintf.constprop.0
mov eax, dword [ebp - 0x310]
mov dword [esp + 4], edi
mov dword [esp], eax
call ebx
xor eax, eax
sub esp, 8
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x10
mov edi, dword [sym.imp.user32.dll_GetDlgItem]
mov dword [esp + 4], 0x7db
mov dword [esp], esi
call edi
sub esp, 8
mov dword [ebp - 0x304], eax
mov dword [esp + 4], 0x7d8
mov dword [esp], esi
call edi
sub esp, 8
mov dword [ebp - 0x308], eax
mov dword [esp + 4], 0x7d9
mov dword [esp], esi
call edi
sub esp, 8
mov dword [ebp - 0x310], eax
mov dword [esp + 4], 0x7da
mov dword [esp], esi
call edi
mov dword [ebp - 0x2cc], 0xbc
sub esp, 8
mov dword [ebp - 0x314], eax
lea eax, [ebp - 0x2cc]
mov dword [esp + 0xc], eax
mov eax, dword [0x410cb0]
mov dword [ebp - 0x2c8], 0x20
mov dword [esp], eax
mov eax, dword [sym.imp.user32.dll_SendMessageW]
mov dword [esp + 8], 0
mov dword [esp + 4], 0x43d
mov dword [ebp - 0x300], eax
call eax
mov dword [ebp - 0x30c], 0
sub esp, 0x10
test byte [ebp - 0x2c8], 0x20
je 0x409cd2
xor eax, eax
cmp word [ebp - 0x2c4], 0
setne al
mov dword [ebp - 0x30c], eax
mov eax, dword [ebp - 0x304]
mov dword [esp + 0xc], 0
lea edi, [ebp - 0x20e]
mov dword [esp + 8], 0
mov dword [esp], eax
mov eax, dword [ebp - 0x300]
mov dword [esp + 4], 0x147
call eax
movzx eax, word [eax + eax + 0x413714]
sub esp, 0x10
mov dword [esp + 8], 0xff
mov word [ebp - 0x2b4], ax
mov eax, dword [ebp - 0x308]
mov dword [esp + 4], edi
mov dword [esp], eax
mov eax, dword [sym.imp.user32.dll_GetWindowTextW]
mov dword [ebp - 0x308], eax
call eax
lea ecx, [ebp - 0x2f8]
lea edx, [ebp - 0x2fc]
mov eax, edi
sub esp, 0xc
call sym._number_from_string
movss xmm0, dword [ebp - 0x2fc]
test eax, eax
setne al
movzx eax, al
mov dword [ebp - 0x304], eax
mov eax, dword [ebp - 0x2f8]
cmp eax, 1
je 0x40a088
cmp eax, 2
je 0x40a070
xor edx, edx
test eax, eax
je 0x40a0f8
mov eax, dword [ebp - 0x310]
mov dword [ebp - 0x2b8], edx
mov dword [esp + 8], 0xff
mov dword [esp], eax
mov eax, dword [ebp - 0x308]
mov dword [esp + 4], edi
call eax
lea ecx, [ebp - 0x2f8]
lea edx, [ebp - 0x2fc]
mov eax, edi
sub esp, 0xc
call sym._number_from_string
movss xmm0, dword [ebp - 0x2fc]
cmp eax, 1
mov eax, dword [ebp - 0x2f8]
sbb dword [ebp - 0x304], 0xffffffff
cmp eax, 1
je 0x40a0e0
cmp eax, 2
je 0x40a0c8
xor edx, edx
test eax, eax
je 0x40a0a0
mov eax, dword [ebp - 0x314]
mov dword [ebp - 0x2bc], edx
mov dword [esp + 8], 0xff
mov dword [esp], eax
mov eax, dword [ebp - 0x308]
mov dword [esp + 4], edi
call eax
lea ecx, [ebp - 0x2f8]
lea edx, [ebp - 0x2fc]
mov eax, edi
sub esp, 0xc
call sym._number_from_string
test eax, eax
je 0x409f30
mov eax, dword [ebp - 0x2f8]
inc dword [ebp - 0x304]
movss xmm0, dword [ebp - 0x2fc]
mov edx, dword [ebp - 0x304]
cmp eax, 1
je 0x40a060
cmp eax, 2
je 0x409ff0
test eax, eax
je 0x40a038
mov dword [ebp - 0x2c0], 0
cmp edx, 3
jne 0x409f62
mov edx, dword [ebp - 0x2b8]
mov ecx, edx
test edx, edx
js 0x40a120
mov eax, dword [ebp - 0x2c0]
add edx, eax
neg eax
mov dword [ebp - 0x2c0], edx
mov edx, dword [ebp - 0x30c]
mov dword [ebp - 0x2b8], eax
mov dword [ebp - 0x2cc], 0xbc
mov dword [ebp - 0x2c8], 0xf
test edx, edx
je 0x409ed7
test eax, eax
mov edx, 0
mov dword [ebp - 0x2c8], 0x400f
cmovs eax, edx
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x2cc]
mov dword [esp + 8], 0
mov dword [esp + 0xc], eax
mov eax, dword [0x410cb0]
mov dword [esp + 4], 0x447
mov dword [esp], eax
mov eax, dword [ebp - 0x300]
call eax
sub esp, 0x10
mov dword [esp + 4], ebx
mov dword [esp], esi
call dword [sym.imp.user32.dll_EndDialog]
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 eax, dword [ebp - 0x2f8]
movss xmm0, dword [ebp - 0x2fc]
cmp eax, 1
je 0x40a060
cmp eax, 2
je 0x409ff0
test eax, eax
je 0x40a038
mov dword [ebp - 0x2c0], 0
mov eax, dword [0x410cb8]
mov dword [esp], 0
mov dword [ebp - 0x2f4], 0x28
mov dword [ebp - 0x2f0], eax
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
mov dword [ebp - 0x2e8], 0x6a9
mov dword [ebp - 0x2ec], eax
sub esp, 4
lea eax, [ebp - 0x2f4]
mov dword [ebp - 0x2e4], 0x41c470
mov dword [ebp - 0x2e0], 0x40
mov dword [ebp - 0x2dc], 0
mov dword [ebp - 0x2d8], 0
mov dword [ebp - 0x2d4], 0
mov dword [ebp - 0x2d0], 0
mov dword [esp], eax
call dword [sym.imp.user32.dll_MessageBoxIndirectW]
sub esp, 4
jmp 0x4098e3
cvtss2sd xmm0, xmm0
mulsd xmm0, qword [0x413658]
cvttsd2si eax, xmm0
cmp dword [ebp - 0x304], 3
mov dword [ebp - 0x2c0], eax
jne 0x409f62
mov edx, dword [ebp - 0x2b8]
mov ecx, edx
add ecx, eax
jns 0x409e80
test eax, eax
jns 0x409e80
neg eax
xor edx, edx
jmp 0x409e92
cvtss2sd xmm0, xmm0
mulsd xmm0, qword [0x413640]
divsd xmm0, qword [0x413648]
mulsd xmm0, qword [0x413650]
cvttsd2si eax, xmm0
jmp 0x40a000
mulss xmm0, dword [0x413630]
cvttss2si eax, xmm0
jmp 0x40a000
cvtss2sd xmm0, xmm0
mulsd xmm0, qword [0x413658]
cvttsd2si edx, xmm0
jmp 0x409d83
mulss xmm0, dword [0x413630]
cvttss2si edx, xmm0
jmp 0x409d83
cvtss2sd xmm0, xmm0
mulsd xmm0, qword [0x413640]
divsd xmm0, qword [0x413648]
mulsd xmm0, qword [0x413650]
cvttsd2si edx, xmm0
jmp 0x409df0
cvtss2sd xmm0, xmm0
mulsd xmm0, qword [0x413658]
cvttsd2si edx, xmm0
jmp 0x409df0
mulss xmm0, dword [0x413630]
cvttss2si edx, xmm0
jmp 0x409df0
cvtss2sd xmm0, xmm0
mulsd xmm0, qword [0x413640]
divsd xmm0, qword [0x413648]
mulsd xmm0, qword [0x413650]
cvttsd2si edx, xmm0
jmp 0x409d83
test ecx, ecx
mov edx, 0
cmovns edx, ecx
mov eax, edx
neg eax
jmp 0x409e92