Function at 0x409a50
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 esi, dword [ecx]
mov ebx, dword [ecx + 8]
cmp eax, 0x110
je 0x409aa8
cmp eax, 0x111
jne 0x409a93
movzx eax, bx
cmp bx, 1
je 0x409db8
cmp eax, 2
je 0x40a0b4
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 - 0x310], 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 - 0x314], eax
mov dword [esp], esi
mov dword [esp + 4], 0x7d9
call edi
sub esp, 8
mov dword [ebp - 0x318], eax
mov dword [esp], esi
mov dword [esp + 4], 0x7da
call edi
lea edi, [ebp - 0x216]
mov esi, dword [sym.imp.user32.dll_LoadStringW]
mov dword [ebp - 0x31c], eax
mov eax, dword [ebp - 0x310]
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 - 0x30c], eax
call eax
mov edx, dword [ebp - 0x310]
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 - 0x30c]
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 - 0x310]
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 - 0x30c]
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 - 0x2d4]
mov dword [ebp - 0x2d4], 0xbc
mov dword [ebp - 0x2d0], 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 - 0x2bc]
mov eax, 1
sub esp, 0x10
cmp dx, 2
je 0x409c4d
xor eax, eax
cmp dx, 3
sete al
add eax, eax
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x30c]
mov dword [esp], ebx
mov dword [esp + 0xc], 0
mov dword [esp + 4], 0x14e
call eax
mov eax, dword [ebp - 0x2c0]
pxor xmm0, xmm0
add eax, dword [ebp - 0x2c8]
sub esp, 0x10
cvtsi2ss xmm0, eax
divss xmm0, dword [0x413640]
mov dword [esp], edi
mulss xmm0, dword [0x413644]
mov dword [esp + 0x14], 0x411060
divss xmm0, dword [0x413648]
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 - 0x314]
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 - 0x2c4]
divss xmm0, dword [0x413640]
mov dword [esp], edi
mulss xmm0, dword [0x413644]
mov dword [esp + 0x14], 0x411060
divss xmm0, dword [0x413648]
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 - 0x318]
mov dword [esp + 4], edi
mov dword [esp], eax
call ebx
mov eax, dword [ebp - 0x2c0]
pxor xmm0, xmm0
sub esp, 8
mov dword [esp], edi
neg eax
mov dword [esp + 0x14], 0x411060
cvtsi2ss xmm0, eax
divss xmm0, dword [0x413640]
mulss xmm0, dword [0x413644]
mov dword [esp + 8], str._.2f__s
divss xmm0, dword [0x413648]
cvtss2sd xmm0, xmm0
mov dword [esp + 4], 0xff
movsd qword [esp + 0xc], xmm0
call sym._swprintf.constprop.0
mov eax, dword [ebp - 0x31c]
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 - 0x310], eax
mov dword [esp + 4], 0x7d8
mov dword [esp], esi
call edi
sub esp, 8
mov dword [ebp - 0x314], eax
mov dword [esp + 4], 0x7d9
mov dword [esp], esi
call edi
sub esp, 8
mov dword [ebp - 0x31c], eax
mov dword [esp + 4], 0x7da
mov dword [esp], esi
call edi
mov dword [ebp - 0x2d4], 0xbc
sub esp, 8
mov dword [ebp - 0x320], eax
lea eax, [ebp - 0x2d4]
mov dword [esp + 0xc], eax
mov eax, dword [0x410cb0]
mov dword [ebp - 0x2d0], 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 - 0x30c], eax
call eax
mov dword [ebp - 0x318], 0
sub esp, 0x10
test byte [ebp - 0x2d0], 0x20
je 0x409e82
xor eax, eax
cmp word [ebp - 0x2cc], 0
setne al
mov dword [ebp - 0x318], eax
mov eax, dword [ebp - 0x310]
mov dword [esp + 0xc], 0
lea edi, [ebp - 0x216]
mov dword [esp + 8], 0
mov dword [esp], eax
mov eax, dword [ebp - 0x30c]
mov dword [esp + 4], 0x147
call eax
movzx eax, word [eax + eax + 0x413724]
sub esp, 0x10
mov dword [esp + 8], 0xff
mov word [ebp - 0x2bc], ax
mov eax, dword [ebp - 0x314]
mov dword [esp + 4], edi
mov dword [esp], eax
mov eax, dword [sym.imp.user32.dll_GetWindowTextW]
mov dword [ebp - 0x314], eax
call eax
lea ecx, [ebp - 0x300]
lea edx, [ebp - 0x304]
mov eax, edi
sub esp, 0xc
call sym._number_from_string
movss xmm0, 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 0x40a238
cmp eax, 2
je 0x40a220
xor edx, edx
test eax, eax
je 0x40a2a8
mov eax, dword [ebp - 0x31c]
mov dword [ebp - 0x2c0], edx
mov dword [esp + 8], 0xff
mov dword [esp], eax
mov eax, dword [ebp - 0x314]
mov dword [esp + 4], edi
call eax
lea ecx, [ebp - 0x300]
lea edx, [ebp - 0x304]
mov eax, edi
sub esp, 0xc
call sym._number_from_string
movss xmm0, dword [ebp - 0x304]
cmp eax, 1
mov eax, dword [ebp - 0x300]
sbb dword [ebp - 0x310], 0xffffffff
cmp eax, 1
je 0x40a290
cmp eax, 2
je 0x40a278
xor edx, edx
test eax, eax
je 0x40a250
mov eax, dword [ebp - 0x320]
mov dword [ebp - 0x2c4], edx
mov dword [esp + 8], 0xff
mov dword [esp], eax
mov eax, dword [ebp - 0x314]
mov dword [esp + 4], edi
call eax
lea ecx, [ebp - 0x300]
lea edx, [ebp - 0x304]
mov eax, edi
sub esp, 0xc
call sym._number_from_string
test eax, eax
je 0x40a0e0
mov eax, dword [ebp - 0x300]
inc dword [ebp - 0x310]
movss xmm0, dword [ebp - 0x304]
mov edx, dword [ebp - 0x310]
cmp eax, 1
je 0x40a210
cmp eax, 2
je 0x40a1a0
test eax, eax
je 0x40a1e8
mov dword [ebp - 0x2c8], 0
cmp edx, 3
jne 0x40a112
mov edx, dword [ebp - 0x2c0]
mov ecx, edx
test edx, edx
js 0x40a2d0
mov eax, dword [ebp - 0x2c8]
add edx, eax
neg eax
mov dword [ebp - 0x2c8], edx
mov edx, dword [ebp - 0x318]
mov dword [ebp - 0x2c0], eax
mov dword [ebp - 0x2d4], 0xbc
mov dword [ebp - 0x2d0], 0xf
test edx, edx
je 0x40a087
test eax, eax
mov edx, 0
mov dword [ebp - 0x2d0], 0x400f
cmovs eax, edx
mov word [ebp - 0x220], ax
lea eax, [ebp - 0x2d4]
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 - 0x30c]
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 - 0x300]
movss xmm0, dword [ebp - 0x304]
cmp eax, 1
je 0x40a210
cmp eax, 2
je 0x40a1a0
test eax, eax
je 0x40a1e8
mov dword [ebp - 0x2c8], 0
mov eax, dword [0x410cb8]
mov dword [esp], 0
mov dword [ebp - 0x2fc], 0x28
mov dword [ebp - 0x2f8], eax
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], 0x41c450
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 dword [sym.imp.user32.dll_MessageBoxIndirectW]
sub esp, 4
jmp 0x409a93
cvtss2sd xmm0, xmm0
mulsd xmm0, qword [0x413668]
cvttsd2si eax, xmm0
cmp dword [ebp - 0x310], 3
mov dword [ebp - 0x2c8], eax
jne 0x40a112
mov edx, dword [ebp - 0x2c0]
mov ecx, edx
add ecx, eax
jns 0x40a030
test eax, eax
jns 0x40a030
neg eax
xor edx, edx
jmp 0x40a042
cvtss2sd xmm0, xmm0
mulsd xmm0, qword [0x413650]
divsd xmm0, qword [0x413658]
mulsd xmm0, qword [0x413660]
cvttsd2si eax, xmm0
jmp 0x40a1b0
mulss xmm0, dword [0x413640]
cvttss2si eax, xmm0
jmp 0x40a1b0
cvtss2sd xmm0, xmm0
mulsd xmm0, qword [0x413668]
cvttsd2si edx, xmm0
jmp 0x409f33
mulss xmm0, dword [0x413640]
cvttss2si edx, xmm0
jmp 0x409f33
cvtss2sd xmm0, xmm0
mulsd xmm0, qword [0x413650]
divsd xmm0, qword [0x413658]
mulsd xmm0, qword [0x413660]
cvttsd2si edx, xmm0
jmp 0x409fa0
cvtss2sd xmm0, xmm0
mulsd xmm0, qword [0x413668]
cvttsd2si edx, xmm0
jmp 0x409fa0
mulss xmm0, dword [0x413640]
cvttss2si edx, xmm0
jmp 0x409fa0
cvtss2sd xmm0, xmm0
mulsd xmm0, qword [0x413650]
divsd xmm0, qword [0x413658]
mulsd xmm0, qword [0x413660]
cvttsd2si edx, xmm0
jmp 0x409f33
test ecx, ecx
mov edx, 0
cmovns edx, ecx
mov eax, edx
neg eax
jmp 0x40a042