Function at 0x408d80
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 0x408dd8
cmp eax, 0x111
jne 0x408dc3
movzx eax, bx
cmp bx, 1
je 0x4090e8
cmp eax, 2
je 0x4093e4
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 [0x41f704]
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 0x408f7d
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 [0x411d68]
mov dword [esp], edi
mulss xmm0, dword [0x411d6c]
mov dword [esp + 0x14], 0x41e6a0
divss xmm0, dword [0x411d70]
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 [0x411d68]
mov dword [esp], edi
mulss xmm0, dword [0x411d6c]
mov dword [esp + 0x14], 0x41e6a0
divss xmm0, dword [0x411d70]
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], 0x41e6a0
cvtsi2ss xmm0, eax
divss xmm0, dword [0x411d68]
mulss xmm0, dword [0x411d6c]
mov dword [esp + 8], str._.2f__s
divss xmm0, dword [0x411d70]
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 [0x41f704]
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 0x4091b2
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 + 0x411b50]
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 0x409568
cmp eax, 2
je 0x409550
xor edx, edx
test eax, eax
je 0x4095d8
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 0x4095c0
cmp eax, 2
je 0x4095a8
xor edx, edx
test eax, eax
je 0x409580
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 0x409410
mov eax, dword [ebp - 0x300]
inc dword [ebp - 0x310]
movss xmm0, dword [ebp - 0x304]
mov edx, dword [ebp - 0x310]
cmp eax, 1
je 0x409540
cmp eax, 2
je 0x4094d0
test eax, eax
je 0x409518
mov dword [ebp - 0x2c8], 0
cmp edx, 3
jne 0x409442
mov edx, dword [ebp - 0x2c0]
mov ecx, edx
test edx, edx
js 0x409600
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 0x4093b7
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 [0x41f704]
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 0x409540
cmp eax, 2
je 0x4094d0
test eax, eax
je 0x409518
mov dword [ebp - 0x2c8], 0
mov eax, dword [0x41f708]
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], 0x411d38
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 0x408dc3
cvtss2sd xmm0, xmm0
mulsd xmm0, qword [0x411d90]
cvttsd2si eax, xmm0
cmp dword [ebp - 0x310], 3
mov dword [ebp - 0x2c8], eax
jne 0x409442
mov edx, dword [ebp - 0x2c0]
mov ecx, edx
add ecx, eax
jns 0x409360
test eax, eax
jns 0x409360
neg eax
xor edx, edx
jmp 0x409372
cvtss2sd xmm0, xmm0
mulsd xmm0, qword [0x411d78]
divsd xmm0, qword [0x411d80]
mulsd xmm0, qword [0x411d88]
cvttsd2si eax, xmm0
jmp 0x4094e0
mulss xmm0, dword [0x411d68]
cvttss2si eax, xmm0
jmp 0x4094e0
cvtss2sd xmm0, xmm0
mulsd xmm0, qword [0x411d90]
cvttsd2si edx, xmm0
jmp 0x409263
mulss xmm0, dword [0x411d68]
cvttss2si edx, xmm0
jmp 0x409263
cvtss2sd xmm0, xmm0
mulsd xmm0, qword [0x411d78]
divsd xmm0, qword [0x411d80]
mulsd xmm0, qword [0x411d88]
cvttsd2si edx, xmm0
jmp 0x4092d0
cvtss2sd xmm0, xmm0
mulsd xmm0, qword [0x411d90]
cvttsd2si edx, xmm0
jmp 0x4092d0
mulss xmm0, dword [0x411d68]
cvttss2si edx, xmm0
jmp 0x4092d0
cvtss2sd xmm0, xmm0
mulsd xmm0, qword [0x411d78]
divsd xmm0, qword [0x411d80]
mulsd xmm0, qword [0x411d88]
cvttsd2si edx, xmm0
jmp 0x409263
test ecx, ecx
mov edx, 0
cmovns edx, ecx
mov eax, edx
neg eax
jmp 0x409372