Function at 0x409530
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 edi, dword [ecx]
mov esi, dword [ecx + 8]
cmp eax, 0x110
je 0x409588
cmp eax, 0x111
jne 0x409573
movzx eax, si
cmp si, 1
je 0x409898
cmp eax, 2
je 0x409b96
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 ebx, dword [sym.imp.user32.dll_GetDlgItem]
sub esp, 4
mov dword [ebp - 0x308], eax
mov dword [esp], edi
mov dword [esp + 4], 0x7db
call ebx
sub esp, 8
mov esi, eax
mov dword [esp], edi
mov dword [esp + 4], 0x7d8
call ebx
sub esp, 8
mov dword [ebp - 0x30c], eax
mov dword [esp], edi
mov dword [esp + 4], 0x7d9
call ebx
sub esp, 8
mov dword [ebp - 0x310], eax
mov dword [esp], edi
mov dword [esp + 4], 0x7da
call ebx
lea ebx, [ebp - 0x20e]
mov edi, dword [sym.imp.user32.dll_LoadStringW]
mov dword [ebp - 0x314], eax
mov eax, dword [ebp - 0x308]
sub esp, 8
mov dword [esp + 0xc], 0xff
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x588
mov dword [esp], eax
call edi
mov eax, dword [sym.imp.user32.dll_SendMessageW]
sub esp, 0x10
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0
mov dword [esp + 4], 0x143
mov dword [esp], esi
mov dword [ebp - 0x304], eax
call eax
mov edx, dword [ebp - 0x308]
sub esp, 0x10
mov dword [esp], edx
mov dword [esp + 0xc], 0xff
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x589
call edi
mov eax, dword [ebp - 0x304]
sub esp, 0x10
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0
mov dword [esp + 4], 0x143
mov dword [esp], esi
call eax
mov edx, dword [ebp - 0x308]
sub esp, 0x10
mov dword [esp], edx
mov dword [esp + 0xc], 0xff
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x58a
call edi
mov edi, dword [ebp - 0x304]
sub esp, 0x10
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0
mov dword [esp + 4], 0x143
mov dword [esp], esi
call edi
mov eax, 0xbc
mov edx, 0xf
sub esp, 0x10
mov dword [ebp - 0x2d0], eax
lea eax, [ebp - 0x2d0]
mov dword [esp + 0xc], eax
mov eax, dword [0x423724]
mov dword [ebp - 0x2cc], edx
mov dword [esp + 8], 0
mov dword [esp + 4], 0x43d
mov dword [esp], eax
call edi
movzx edx, word [ebp - 0x2b8]
mov eax, 1
sub esp, 0x10
cmp dx, 2
je 0x40972f
xor eax, eax
cmp dx, 3
sete al
add eax, eax
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x304]
mov dword [esp], esi
mov dword [esp + 0xc], 0
mov dword [esp + 4], 0x14e
call eax
mov eax, dword [ebp - 0x2bc]
pxor xmm0, xmm0
add eax, dword [ebp - 0x2c4]
sub esp, 0x10
cvtsi2ss xmm0, eax
divss xmm0, dword [0x411d58]
mov dword [esp], ebx
mulss xmm0, dword [0x411d5c]
mov dword [esp + 0x14], 0x4226c0
divss xmm0, dword [0x411d60]
cvtss2sd xmm0, xmm0
mov dword [esp + 8], 0x411720
mov dword [esp + 4], 0xff
movsd qword [esp + 0xc], xmm0
call sym._swprintf.constprop.0
mov eax, dword [ebp - 0x30c]
mov esi, dword [sym.imp.user32.dll_SetWindowTextW]
mov dword [esp + 4], ebx
mov dword [esp], eax
call esi
pxor xmm0, xmm0
sub esp, 8
cvtsi2ss xmm0, dword [ebp - 0x2c0]
divss xmm0, dword [0x411d58]
mov dword [esp], ebx
mulss xmm0, dword [0x411d5c]
mov dword [esp + 0x14], 0x4226c0
divss xmm0, dword [0x411d60]
cvtss2sd xmm0, xmm0
mov dword [esp + 8], 0x411720
mov dword [esp + 4], 0xff
movsd qword [esp + 0xc], xmm0
call sym._swprintf.constprop.0
mov eax, dword [ebp - 0x310]
mov dword [esp + 4], ebx
mov dword [esp], eax
call esi
mov eax, dword [ebp - 0x2bc]
pxor xmm0, xmm0
sub esp, 8
mov dword [esp], ebx
neg eax
mov dword [esp + 0x14], 0x4226c0
cvtsi2ss xmm0, eax
divss xmm0, dword [0x411d58]
mulss xmm0, dword [0x411d5c]
mov dword [esp + 8], 0x411720
divss xmm0, dword [0x411d60]
cvtss2sd xmm0, xmm0
mov dword [esp + 4], 0xff
movsd qword [esp + 0xc], xmm0
call sym._swprintf.constprop.0
mov eax, dword [ebp - 0x314]
mov dword [esp + 4], ebx
mov dword [esp], eax
call esi
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 ebx, dword [sym.imp.user32.dll_GetDlgItem]
mov dword [esp + 4], 0x7db
mov dword [esp], edi
call ebx
sub esp, 8
mov dword [ebp - 0x30c], eax
mov dword [esp + 4], 0x7d8
mov dword [esp], edi
call ebx
sub esp, 8
mov dword [ebp - 0x308], eax
mov dword [esp + 4], 0x7d9
mov dword [esp], edi
call ebx
sub esp, 8
mov dword [ebp - 0x314], eax
mov dword [esp + 4], 0x7da
mov dword [esp], edi
call ebx
mov ecx, 0xbc
mov ebx, 0x20
sub esp, 8
mov dword [ebp - 0x318], eax
lea eax, [ebp - 0x2d0]
mov dword [esp + 0xc], eax
mov eax, dword [0x423724]
mov dword [ebp - 0x2d0], ecx
mov dword [esp], eax
mov eax, dword [sym.imp.user32.dll_SendMessageW]
mov dword [ebp - 0x2cc], ebx
mov dword [esp + 8], 0
mov dword [esp + 4], 0x43d
mov dword [ebp - 0x304], eax
call eax
mov edx, dword [ebp - 0x30c]
mov dword [ebp - 0x310], 0
sub esp, 0x10
test byte [ebp - 0x2cc], 0x20
je 0x40996a
xor eax, eax
cmp word [ebp - 0x2c8], 0
setne al
mov dword [ebp - 0x310], eax
mov dword [esp], edx
mov eax, dword [ebp - 0x304]
lea ebx, [ebp - 0x20e]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x147
call eax
movzx eax, word [eax + eax + 0x411c88]
sub esp, 0x10
mov dword [esp + 8], 0xff
mov word [ebp - 0x2b8], ax
mov eax, dword [ebp - 0x308]
mov dword [esp + 4], ebx
mov dword [esp], eax
mov eax, dword [sym.imp.user32.dll_GetWindowTextW]
mov dword [ebp - 0x30c], eax
call eax
lea ecx, [ebp - 0x2fc]
lea edx, [ebp - 0x300]
mov eax, ebx
sub esp, 0xc
call sym._number_from_string
movss xmm0, dword [ebp - 0x300]
test eax, eax
setne al
movzx eax, al
mov dword [ebp - 0x308], eax
mov eax, dword [ebp - 0x2fc]
cmp eax, 1
je 0x409d18
cmp eax, 2
je 0x409d00
xor edx, edx
test eax, eax
je 0x409d88
mov eax, dword [ebp - 0x314]
mov dword [ebp - 0x2bc], edx
mov dword [esp + 8], 0xff
mov dword [esp], eax
mov eax, dword [ebp - 0x30c]
mov dword [esp + 4], ebx
call eax
lea ecx, [ebp - 0x2fc]
lea edx, [ebp - 0x300]
mov eax, ebx
sub esp, 0xc
call sym._number_from_string
movss xmm0, dword [ebp - 0x300]
cmp eax, 1
mov eax, dword [ebp - 0x2fc]
sbb dword [ebp - 0x308], 0xffffffff
cmp eax, 1
je 0x409d70
cmp eax, 2
je 0x409d58
xor edx, edx
test eax, eax
je 0x409d30
mov eax, dword [ebp - 0x318]
mov dword [ebp - 0x2c0], edx
mov dword [esp + 8], 0xff
mov dword [esp], eax
mov eax, dword [ebp - 0x30c]
mov dword [esp + 4], ebx
call eax
lea ecx, [ebp - 0x2fc]
lea edx, [ebp - 0x300]
mov eax, ebx
sub esp, 0xc
call sym._number_from_string
test eax, eax
je 0x409bc0
mov eax, dword [ebp - 0x2fc]
add dword [ebp - 0x308], 1
movss xmm0, dword [ebp - 0x300]
mov edx, dword [ebp - 0x308]
cmp eax, 1
je 0x409ce8
cmp eax, 2
je 0x409c80
test eax, eax
je 0x409cc0
mov dword [ebp - 0x2c4], 0
cmp edx, 3
jne 0x409bf2
mov eax, dword [ebp - 0x2bc]
mov edx, eax
test eax, eax
js 0x409db0
mov ecx, dword [ebp - 0x2c4]
add eax, ecx
neg ecx
mov dword [ebp - 0x2c4], eax
mov eax, 0xbc
mov edx, 0xf
mov dword [ebp - 0x2d0], eax
mov eax, dword [ebp - 0x310]
mov dword [ebp - 0x2bc], ecx
mov dword [ebp - 0x2cc], edx
test eax, eax
je 0x409b69
mov dword [ebp - 0x2cc], 0x400f
xor eax, eax
test ecx, ecx
cmovns eax, ecx
mov word [ebp - 0x21c], ax
lea eax, [ebp - 0x2d0]
mov dword [esp + 8], 0
mov dword [esp + 0xc], eax
mov eax, dword [0x423724]
mov dword [esp + 4], 0x447
mov dword [esp], eax
mov eax, dword [ebp - 0x304]
call eax
sub esp, 0x10
mov dword [esp + 4], esi
mov dword [esp], edi
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 - 0x2fc]
movss xmm0, dword [ebp - 0x300]
cmp eax, 1
je 0x409ce8
cmp eax, 2
je 0x409c80
test eax, eax
je 0x409cc0
mov dword [ebp - 0x2c4], 0
mov eax, dword [0x423728]
mov dword [esp], 0
mov dword [ebp - 0x2f8], 0x28
mov dword [ebp - 0x2f4], eax
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
mov dword [ebp - 0x2ec], 0x6a9
mov dword [ebp - 0x2f0], eax
sub esp, 4
lea eax, [ebp - 0x2f8]
mov dword [ebp - 0x2e8], 0x411758
mov dword [ebp - 0x2e4], 0x40
mov dword [ebp - 0x2e0], 0
mov dword [ebp - 0x2dc], 0
mov dword [ebp - 0x2d8], 0
mov dword [ebp - 0x2d4], 0
mov dword [esp], eax
call dword [sym.imp.user32.dll_MessageBoxIndirectW]
sub esp, 4
jmp 0x409573
cvtss2sd xmm0, xmm0
mulsd xmm0, qword [0x411d80]
cvttsd2si ecx, xmm0
cmp dword [ebp - 0x308], 3
mov dword [ebp - 0x2c4], ecx
jne 0x409bf2
mov eax, dword [ebp - 0x2bc]
lea edx, [eax + ecx]
test edx, ecx
jns 0x409b13
neg ecx
xor eax, eax
jmp 0x409b25
cvtss2sd xmm0, xmm0
mulsd xmm0, qword [0x411d68]
divsd xmm0, qword [0x411d70]
mulsd xmm0, qword [0x411d78]
cvttsd2si ecx, xmm0
jmp 0x409c90
mulss xmm0, dword [0x411d58]
cvttss2si ecx, xmm0
jmp 0x409c90
cvtss2sd xmm0, xmm0
mulsd xmm0, qword [0x411d80]
cvttsd2si edx, xmm0
jmp 0x409a15
mulss xmm0, dword [0x411d58]
cvttss2si edx, xmm0
jmp 0x409a15
cvtss2sd xmm0, xmm0
mulsd xmm0, qword [0x411d68]
divsd xmm0, qword [0x411d70]
mulsd xmm0, qword [0x411d78]
cvttsd2si edx, xmm0
jmp 0x409a82
cvtss2sd xmm0, xmm0
mulsd xmm0, qword [0x411d80]
cvttsd2si edx, xmm0
jmp 0x409a82
mulss xmm0, dword [0x411d58]
cvttss2si edx, xmm0
jmp 0x409a82
cvtss2sd xmm0, xmm0
mulsd xmm0, qword [0x411d68]
divsd xmm0, qword [0x411d70]
mulsd xmm0, qword [0x411d78]
cvttsd2si edx, xmm0
jmp 0x409a15
xor eax, eax
test edx, edx
cmovns eax, edx
mov ecx, eax
neg ecx
jmp 0x409b25