Function at 0x40d780
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, 0x2d0
mov eax, dword [ecx]
mov edx, dword [ecx + 8]
mov edi, dword [ecx + 0xc]
mov dword [ebp - 0x2c0], eax
mov eax, dword [ecx + 4]
mov dword [ebp - 0x2c4], edx
cmp eax, 0x110
je 0x40d8e0
cmp eax, 0x111
jne 0x40da28
movzx eax, word [ebp - 0x2c4]
cmp eax, 0x65
je 0x40dcd8
ja 0x40da40
cmp eax, 2
je 0x40dcae
cmp eax, 0x64
jne 0x40db60
mov eax, dword [ebp - 0x2c0]
mov dword [esp + 4], 0x7dc
lea ebx, [ebp - 0x20e]
mov dword [esp], eax
call dword [sym.imp.user32.dll_GetDlgItem]
sub esp, 8
mov edi, eax
mov dword [esp + 8], 0xff
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.user32.dll_GetWindowTextW]
mov edx, ebx
sub esp, 0xc
cmp word [ebp - 0x20e], 0
je 0x40d841
lea esi, [esi]
add edx, 2
cmp word [edx], 0
jne 0x40d838
xor eax, eax
lea esi, [esi]
nop
movzx ecx, word [eax + 0x411c30]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x40d848
cmp word [ebp - 0x20e], 0
mov edx, ebx
je 0x40d879
lea esi, [esi]
nop
add edx, 2
cmp word [edx], 0
jne 0x40d870
xor eax, eax
lea esi, [esi]
nop
movzx ecx, word [eax + 0x4226c0]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x40d880
mov dword [esp + 0xc], ebx
mov esi, dword [sym.imp.user32.dll_SendMessageW]
mov dword [esp + 8], 0xffffffff
mov dword [esp + 4], 0x158
mov dword [esp], edi
call esi
mov dword [ebp - 0x2c4], eax
sub esp, 0x10
cmp eax, 0xffffffff
je 0x40dde2
mov dword [esp], edi
call dword [sym.imp.user32.dll_SetFocus]
xor ecx, ecx
sub esp, 4
jmp 0x40da2a
mov eax, dword [ebp - 0x2c0]
mov dword [esp + 4], 0x7dc
mov dword [esp], eax
call dword [sym.imp.user32.dll_GetDlgItem]
mov edx, 0x10
mov esi, dword [sym.imp.user32.dll_SendMessageW]
mov dword [ebp - 0x2c0], eax
mov edi, eax
mov eax, 0x9c
sub esp, 8
mov dword [ebp - 0x2b0], eax
mov eax, dword [0x423724]
mov dword [ebp - 0x2ac], edx
lea edx, [ebp - 0x2b0]
mov dword [ebp - 0x2bc], edx
mov dword [esp + 0xc], edx
mov dword [esp + 8], 0
mov dword [esp + 4], 0x43d
mov dword [esp], eax
call esi
sub esp, 0x10
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0xfe
mov dword [esp + 4], 0x141
mov dword [esp], edi
call esi
sub esp, 0x10
cmp word [ebp - 0x296], 0
jle 0x40da16
xor edi, edi
mov eax, esi
lea ebx, [ebp - 0x20e]
mov esi, edi
mov edi, eax
lea esi, [esi]
nop
mov dword [esp + 0x14], 0x4226c0
mov eax, dword [ebp - 0x2bc]
pxor xmm0, xmm0
cvtsi2ss xmm0, dword [eax + esi*4 + 0x1c]
mov dword [esp], ebx
add esi, 1
divss xmm0, dword [0x411d58]
mov dword [esp + 8], 0x411720
mulss xmm0, dword [0x411d5c]
mov dword [esp + 4], 0xff
divss xmm0, dword [0x411d60]
cvtss2sd xmm0, xmm0
movsd qword [esp + 0xc], xmm0
call sym._swprintf.constprop.0
mov eax, dword [ebp - 0x2c0]
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0
mov dword [esp + 4], 0x143
mov dword [esp], eax
call edi
movsx eax, word [ebp - 0x296]
sub esp, 0x10
cmp eax, esi
jg 0x40d990
mov eax, dword [ebp - 0x2c0]
mov dword [esp], eax
call dword [sym.imp.user32.dll_SetFocus]
sub esp, 4
xor ecx, ecx
lea esp, [ebp - 0x10]
mov eax, ecx
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x10
cmp eax, 0x66
je 0x40dd70
cmp eax, 0x7dc
jne 0x40da28
mov eax, dword [ebp - 0x2c0]
mov ebx, dword [sym.imp.user32.dll_GetDlgItem]
mov dword [esp + 4], 0x64
mov dword [esp], eax
call ebx
mov esi, eax
mov eax, dword [ebp - 0x2c0]
sub esp, 8
mov dword [esp + 4], 0x65
mov dword [esp], eax
call ebx
mov dword [ebp - 0x2bc], eax
mov eax, dword [ebp - 0x2c0]
sub esp, 8
mov dword [esp + 4], 0x66
mov dword [esp], eax
call ebx
sub esp, 8
mov ebx, eax
mov dword [esp], edi
call dword [sym.imp.user32.dll_GetWindowTextLengthW]
sub esp, 4
test eax, eax
jne 0x40dd52
mov dword [esp], esi
mov esi, dword [sym.imp.user32.dll_EnableWindow]
mov dword [esp + 4], 0
call esi
sub esp, 8
mov eax, dword [sym.imp.user32.dll_SendMessageW]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x146
mov dword [esp], edi
mov dword [ebp - 0x2c0], eax
call eax
sub esp, 0x10
test eax, eax
je 0x40ddc1
mov dword [esp + 4], 1
mov dword [esp], ebx
call esi
mov eax, dword [ebp - 0x2c0]
sub esp, 8
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x147
mov dword [esp], edi
call eax
sub esp, 0x10
cmp eax, 0xffffffff
je 0x40df56
mov dword [esp + 4], 1
mov eax, dword [ebp - 0x2bc]
mov dword [esp], eax
call esi
sub esp, 8
jmp 0x40da28
cmp eax, 1
jne 0x40da28
mov eax, dword [ebp - 0x2c0]
mov dword [esp + 4], 0x7dc
lea ebx, [ebp - 0x20e]
xor edi, edi
mov dword [esp], eax
call dword [sym.imp.user32.dll_GetDlgItem]
mov edx, 0x10
mov esi, dword [sym.imp.user32.dll_SendMessageW]
mov dword [ebp - 0x2c8], eax
mov eax, 0x9c
sub esp, 8
mov dword [ebp - 0x2b0], eax
lea eax, [ebp - 0x2b0]
mov dword [ebp - 0x2ac], edx
mov dword [ebp - 0x2bc], eax
jmp 0x40dbd3
xor edx, edx
test eax, eax
je 0x40dc40
mov eax, dword [ebp - 0x2bc]
mov dword [eax + edi*4 + 0x1c], edx
add edi, 1
mov eax, dword [ebp - 0x2c8]
mov dword [esp + 0xc], ebx
mov dword [esp + 8], edi
mov dword [esp + 4], 0x148
mov dword [esp], eax
call esi
sub esp, 0x10
cmp eax, 0xffffffff
je 0x40dc80
cmp edi, 0x20
je 0x40dc80
lea ecx, [ebp - 0x2b4]
lea edx, [ebp - 0x2b8]
mov eax, ebx
call sym._number_from_string
mov eax, dword [ebp - 0x2b4]
movss xmm0, dword [ebp - 0x2b8]
cmp eax, 1
je 0x40dc68
cmp eax, 2
jne 0x40dbc0
cvtss2sd xmm0, xmm0
mulsd xmm0, qword [0x411d80]
cvttsd2si edx, xmm0
jmp 0x40dbc6
cvtss2sd xmm0, xmm0
mulsd xmm0, qword [0x411d68]
divsd xmm0, qword [0x411d70]
mulsd xmm0, qword [0x411d78]
cvttsd2si edx, xmm0
jmp 0x40dbc6
mulss xmm0, dword [0x411d58]
cvttss2si edx, xmm0
jmp 0x40dbc6
mov eax, dword [ebp - 0x2bc]
mov word [ebp - 0x296], di
mov dword [esp + 8], 0
mov dword [esp + 0xc], eax
mov eax, dword [0x423724]
mov dword [esp + 4], 0x447
mov dword [esp], eax
call esi
sub esp, 0x10
mov eax, dword [ebp - 0x2c4]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x2c0]
mov dword [esp], eax
call dword [sym.imp.user32.dll_EndDialog]
mov ecx, 1
sub esp, 8
jmp 0x40da2a
mov eax, dword [ebp - 0x2c0]
mov dword [esp + 4], 0x7dc
mov dword [esp], eax
call dword [sym.imp.user32.dll_GetDlgItem]
mov esi, dword [sym.imp.user32.dll_SendMessageW]
sub esp, 8
mov ebx, eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x147
mov dword [esp], eax
call esi
xor ecx, ecx
sub esp, 0x10
cmp eax, 0xffffffff
je 0x40da2a
mov dword [ebp - 0x2bc], ecx
mov dword [esp + 0xc], 0
mov dword [esp + 8], eax
mov dword [esp + 4], 0x144
mov dword [esp], ebx
call esi
mov ecx, dword [ebp - 0x2bc]
sub esp, 0x10
jmp 0x40da2a
mov dword [esp], esi
mov esi, dword [sym.imp.user32.dll_EnableWindow]
mov dword [esp + 4], 1
call esi
sub esp, 8
jmp 0x40dacc
mov eax, dword [ebp - 0x2c0]
mov dword [esp + 4], 0x7dc
mov dword [esp], eax
call dword [sym.imp.user32.dll_GetDlgItem]
sub esp, 8
mov ebx, eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x14b
mov dword [esp], eax
call dword [sym.imp.user32.dll_SendMessageW]
sub esp, 0x10
mov dword [esp], ebx
call dword [sym.imp.user32.dll_SetFocus]
sub esp, 4
jmp 0x40da28
mov dword [ebp - 0x2bc], eax
mov dword [esp + 4], 0
mov dword [esp], ebx
call esi
mov ecx, dword [ebp - 0x2bc]
sub esp, 8
jmp 0x40da2a
mov dword [ebp - 0x2b4], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x146
mov dword [esp], edi
call esi
lea ecx, [ebp - 0x2b8]
lea edx, [ebp - 0x2b4]
mov dword [ebp - 0x2bc], eax
sub esp, 0x10
mov eax, ebx
call sym._number_from_string
test eax, eax
je 0x40df63
cmp dword [ebp - 0x2bc], 0x1f
jg 0x40dfec
mov eax, dword [ebp - 0x2b8]
movss xmm0, dword [ebp - 0x2b4]
mov dword [ebp - 0x2b0], 0xbf800000
cmp eax, 1
je 0x40e114
cmp eax, 2
je 0x40e0e9
test eax, eax
je 0x40e128
mov dword [ebp - 0x2c0], 0
mov eax, dword [ebp - 0x2bc]
test eax, eax
jle 0x40e150
xor edx, edx
lea eax, [ebp - 0x2b0]
mov dword [ebp - 0x2c4], edi
mov dword [ebp - 0x2c8], esi
mov edi, edx
mov esi, eax
jmp 0x40dec3
xor edx, edx
test eax, eax
je 0x40df31
cmp dword [ebp - 0x2c0], edx
jle 0x40e027
add edi, 1
cmp dword [ebp - 0x2bc], edi
je 0x40e0d8
mov eax, dword [ebp - 0x2c4]
mov dword [esp + 0xc], ebx
mov dword [esp + 8], edi
mov dword [esp], eax
mov eax, dword [ebp - 0x2c8]
mov dword [esp + 4], 0x148
call eax
lea ecx, [ebp - 0x2b8]
mov edx, esi
mov eax, ebx
sub esp, 0x10
call sym._number_from_string
mov eax, dword [ebp - 0x2b8]
movss xmm0, dword [ebp - 0x2b0]
cmp eax, 1
je 0x40df20
cmp eax, 2
jne 0x40de9e
cvtss2sd xmm0, xmm0
mulsd xmm0, qword [0x411d80]
cvttsd2si edx, xmm0
jmp 0x40dea8
mulss xmm0, dword [0x411d58]
cvttss2si edx, xmm0
jmp 0x40dea8
cvtss2sd xmm0, xmm0
mulsd xmm0, qword [0x411d68]
divsd xmm0, qword [0x411d70]
mulsd xmm0, qword [0x411d78]
cvttsd2si edx, xmm0
jmp 0x40dea8
mov dword [esp + 4], 0
jmp 0x40db46
mov eax, dword [ebp - 0x2c0]
mov dword [esp], 0
mov dword [ebp - 0x2b0], 0x28
mov dword [ebp - 0x2ac], eax
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
mov dword [ebp - 0x2a4], 0x6a9
mov dword [ebp - 0x2a8], eax
sub esp, 4
mov dword [ebp - 0x2a0], 0x411758
lea eax, [ebp - 0x2b0]
mov dword [ebp - 0x29c], 0x40
mov dword [ebp - 0x298], 0
mov dword [ebp - 0x294], 0
mov dword [ebp - 0x290], 0
mov dword [ebp - 0x28c], 0
mov dword [esp], eax
call dword [sym.imp.user32.dll_MessageBoxIndirectW]
sub esp, 4
jmp 0x40d8c4
mov eax, dword [ebp - 0x2c0]
mov dword [esp], 0
mov dword [ebp - 0x2b0], 0x28
mov dword [ebp - 0x2ac], eax
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
mov dword [ebp - 0x2a4], 0x6b0
mov dword [ebp - 0x2a8], eax
sub esp, 4
jmp 0x40df99
mov ecx, edi
mov edi, dword [ebp - 0x2c4]
mov dword [ebp - 0x2c4], edx
mov esi, dword [ebp - 0x2c8]
mov edx, dword [ebp - 0x2c0]
cmp dword [ebp - 0x2c4], edx
je 0x40d8c4
mov dword [ebp - 0x2bc], ecx
mov dword [esp + 0x14], 0x4226c0
pxor xmm0, xmm0
mov dword [esp + 8], 0x411720
cvtsi2ss xmm0, dword [ebp - 0x2c0]
divss xmm0, dword [0x411d58]
mulss xmm0, dword [0x411d5c]
divss xmm0, dword [0x411d60]
mov dword [esp], ebx
cvtss2sd xmm0, xmm0
mov dword [esp + 4], 0xff
movsd qword [esp + 0xc], xmm0
call sym._swprintf.constprop.0
mov eax, dword [ebp - 0x2bc]
mov dword [esp + 0xc], ebx
mov dword [esp + 4], 0x14a
mov dword [esp + 8], eax
mov dword [esp], edi
call esi
sub esp, 0x10
mov dword [esp + 4], 0
mov dword [esp], edi
call dword [sym.imp.user32.dll_SetWindowTextW]
sub esp, 8
jmp 0x40d8c4
mov edi, dword [ebp - 0x2c4]
mov esi, dword [ebp - 0x2c8]
jmp 0x40e053
cvtss2sd xmm0, xmm0
mulsd xmm0, qword [0x411d80]
cvttsd2si eax, xmm0
mov dword [ebp - 0x2c0], eax
mov edx, dword [ebp - 0x2bc]
test edx, edx
jg 0x40de84
xor ecx, ecx
jmp 0x40e03b
mulss xmm0, dword [0x411d58]
cvttss2si eax, xmm0
mov dword [ebp - 0x2c0], eax
jmp 0x40e0ff
cvtss2sd xmm0, xmm0
mulsd xmm0, qword [0x411d68]
divsd xmm0, qword [0x411d70]
mulsd xmm0, qword [0x411d78]
cvttsd2si eax, xmm0
mov dword [ebp - 0x2c0], eax
jmp 0x40e0ff
mov dword [ebp - 0x2bc], 0
jmp 0x40e053