Function at 0x40d490
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, 0x2f8
mov eax, dword [ecx]
mov edx, dword [ecx + 8]
mov edi, dword [ecx + 0xc]
mov dword [ebp - 0x2d4], eax
mov eax, dword [ecx + 4]
cmp eax, 0x110
je 0x40d828
cmp eax, 0x111
jne 0x40d5d0
movzx eax, dx
cmp eax, 0x65
je 0x40da48
ja 0x40d5e0
cmp eax, 2
je 0x40da00
cmp eax, 0x64
jne 0x40d700
mov dword [esp + 4], 0x7dc
mov eax, dword [ebp - 0x2d4]
lea ebx, [ebp - 0x216]
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 - 0x216], 0
je 0x40d549
lea esi, [esi]
nop
add edx, 2
cmp word [edx], 0
jne 0x40d540
xor eax, eax
lea esi, [esi]
nop
movzx ecx, word [eax + 0x411b48]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x40d550
cmp word [ebp - 0x216], 0
mov edx, ebx
je 0x40d579
nop
add edx, 2
cmp word [edx], 0
jne 0x40d570
xor eax, eax
lea esi, [esi]
nop
movzx ecx, word [eax + 0x41e6a0]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x40d580
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 - 0x2d0], eax
sub esp, 0x10
cmp eax, 0xffffffff
je 0x40db2a
mov dword [esp], edi
call dword [sym.imp.user32.dll_SetFocus]
sub esp, 4
xor eax, eax
jmp 0x40da1b
cmp eax, 0x66
je 0x40dac0
cmp eax, 0x7dc
jne 0x40d5d0
mov dword [esp + 4], 0x64
mov eax, dword [ebp - 0x2d4]
mov ebx, dword [sym.imp.user32.dll_GetDlgItem]
mov dword [esp], eax
call ebx
sub esp, 8
mov esi, eax
mov dword [esp + 4], 0x65
mov eax, dword [ebp - 0x2d4]
mov dword [esp], eax
call ebx
sub esp, 8
mov dword [ebp - 0x2d0], eax
mov dword [esp + 4], 0x66
mov eax, dword [ebp - 0x2d4]
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
je 0x40da29
mov dword [esp], esi
mov esi, dword [sym.imp.user32.dll_EnableWindow]
mov dword [esp + 4], 1
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 - 0x2d4], eax
call eax
sub esp, 0x10
test eax, eax
je 0x40db13
mov dword [esp + 4], 1
mov dword [esp], ebx
call esi
sub esp, 8
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x147
mov dword [esp], edi
mov eax, dword [ebp - 0x2d4]
call eax
sub esp, 0x10
cmp eax, 0xffffffff
je 0x40dcd5
mov dword [esp + 4], 1
mov eax, dword [ebp - 0x2d0]
mov dword [esp], eax
call esi
xor eax, eax
sub esp, 8
jmp 0x40da1b
cmp eax, 1
jne 0x40d5d0
mov dword [ebp - 0x2dc], edx
lea ebx, [ebp - 0x216]
xor edi, edi
mov dword [esp + 4], 0x7dc
mov eax, dword [ebp - 0x2d4]
mov dword [esp], eax
call dword [sym.imp.user32.dll_GetDlgItem]
mov edx, dword [ebp - 0x2dc]
mov dword [ebp - 0x2b4], 0x9c
mov dword [ebp - 0x2d8], eax
lea eax, [ebp - 0x2b4]
mov esi, dword [sym.imp.user32.dll_SendMessageW]
sub esp, 8
mov dword [ebp - 0x2b0], 0x10
mov dword [ebp - 0x2d0], eax
mov dword [ebp - 0x2e0], edx
jmp 0x40d789
xor edx, edx
test eax, eax
je 0x40d9a0
fstp st(0)
mov eax, dword [ebp - 0x2d0]
mov dword [eax + edi*4 + 0x1c], edx
add edi, 1
mov dword [esp + 0xc], ebx
mov dword [esp + 8], edi
mov dword [esp + 4], 0x148
mov eax, dword [ebp - 0x2d8]
mov dword [esp], eax
call esi
sub esp, 0x10
cmp eax, 0xffffffff
je 0x40d9c0
cmp edi, 0x20
je 0x40d9c0
lea ecx, [ebp - 0x2b8]
lea edx, [ebp - 0x2bc]
mov eax, ebx
call dbg.number_from_string
mov eax, dword [ebp - 0x2b8]
fld dword [ebp - 0x2bc]
cmp eax, 1
je 0x40d960
cmp eax, 2
jne 0x40d770
fld qword [0x411d48]
fmulp st(1)
fnstcw word [ebp - 0x2ca]
movzx eax, word [ebp - 0x2ca]
or ah, 0xc
mov word [ebp - 0x2cc], ax
fldcw word [ebp - 0x2cc]
fistp dword [ebp - 0x2dc]
fldcw word [ebp - 0x2ca]
mov edx, dword [ebp - 0x2dc]
jmp 0x40d77c
mov dword [esp + 4], 0x7dc
mov eax, dword [ebp - 0x2d4]
lea ebx, [ebp - 0x216]
mov dword [esp], eax
call dword [sym.imp.user32.dll_GetDlgItem]
lea edx, [ebp - 0x2b4]
mov dword [ebp - 0x2b4], 0x9c
mov esi, dword [sym.imp.user32.dll_SendMessageW]
sub esp, 8
mov dword [ebp - 0x2d4], eax
mov edi, eax
mov dword [ebp - 0x2d0], edx
mov dword [ebp - 0x2b0], 0x10
mov dword [esp + 0xc], edx
mov dword [esp + 8], 0
mov dword [esp + 4], 0x43d
mov eax, dword [0x41f704]
mov dword [esp], eax
call esi
sub esp, 0x10
mov dword [esp], edi
xor edi, edi
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0xfe
mov dword [esp + 4], 0x141
call esi
mov eax, esi
mov esi, edi
sub esp, 0x10
cmp word [ebp - 0x29a], 0
mov edi, eax
jle 0x40d940
lea esi, [esi]
mov dword [esp + 0x14], 0x41e6a0
mov eax, dword [ebp - 0x2d0]
fild dword [eax + esi*4 + 0x1c]
fdiv dword [0x411d38]
mov dword [esp], ebx
add esi, 1
mov dword [esp + 8], str._.2f__s
mov dword [esp + 4], 0xff
fmul dword [0x411d3c]
fdiv dword [0x411d40]
fstp qword [esp + 0xc]
call sym._swprintf.constprop.0
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0
mov dword [esp + 4], 0x143
mov eax, dword [ebp - 0x2d4]
mov dword [esp], eax
call edi
movsx eax, word [ebp - 0x29a]
sub esp, 0x10
cmp eax, esi
jg 0x40d8d0
mov eax, dword [ebp - 0x2d4]
mov dword [esp], eax
call dword [sym.imp.user32.dll_SetFocus]
xor eax, eax
sub esp, 4
jmp 0x40da1b
fnstcw word [ebp - 0x2ca]
fmul dword [0x411d38]
movzx eax, word [ebp - 0x2ca]
or ah, 0xc
mov word [ebp - 0x2cc], ax
fldcw word [ebp - 0x2cc]
fistp dword [ebp - 0x2dc]
fldcw word [ebp - 0x2ca]
mov edx, dword [ebp - 0x2dc]
jmp 0x40d77c
fmul dword [0x411d40]
fdiv dword [0x411d3c]
fmul dword [0x411d38]
jmp 0x40d7ee
mov edx, dword [ebp - 0x2e0]
mov eax, dword [ebp - 0x2d0]
mov word [ebp - 0x29a], di
mov dword [ebp - 0x2d8], edx
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0x447
mov eax, dword [0x41f704]
mov dword [esp], eax
call esi
mov edx, dword [ebp - 0x2d8]
sub esp, 0x10
mov dword [esp + 4], edx
mov eax, dword [ebp - 0x2d4]
mov dword [esp], eax
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 dword [esp], esi
mov esi, dword [sym.imp.user32.dll_EnableWindow]
mov dword [esp + 4], 0
call esi
sub esp, 8
jmp 0x40d66c
mov dword [esp + 4], 0x7dc
mov eax, dword [ebp - 0x2d4]
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
sub esp, 0x10
cmp eax, 0xffffffff
je 0x40d5d0
mov dword [esp + 0xc], 0
mov dword [esp + 8], eax
mov dword [esp + 4], 0x144
mov dword [esp], ebx
call esi
xor eax, eax
sub esp, 0x10
jmp 0x40da1b
mov dword [esp + 4], 0x7dc
mov eax, dword [ebp - 0x2d4]
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]
xor eax, eax
sub esp, 4
jmp 0x40da1b
mov dword [esp + 4], 0
mov dword [esp], ebx
call esi
xor eax, eax
sub esp, 8
jmp 0x40da1b
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x146
mov dword [esp], edi
call esi
lea ecx, [ebp - 0x2bc]
lea edx, [ebp - 0x2b8]
mov dword [ebp - 0x2d8], eax
sub esp, 0x10
mov eax, ebx
call dbg.number_from_string
test eax, eax
je 0x40dcf2
cmp dword [ebp - 0x2d8], 0x1f
jg 0x40dd7b
mov eax, dword [ebp - 0x2bc]
fld dword [ebp - 0x2b8]
mov dword [ebp - 0x2b4], 0xbf800000
cmp eax, 1
je 0x40deaa
cmp eax, 2
je 0x40de5e
test eax, eax
je 0x40dedb
fstp st(0)
mov dword [ebp - 0x2d4], 0
mov eax, dword [ebp - 0x2d8]
test eax, eax
jle 0x40def2
xor edx, edx
lea eax, [ebp - 0x2b4]
mov dword [ebp - 0x2dc], edi
mov dword [ebp - 0x2d0], eax
mov edi, edx
jmp 0x40dc01
xor edx, edx
test eax, eax
je 0x40dcbe
fstp st(0)
cmp dword [ebp - 0x2d4], edx
jle 0x40ddb6
add edi, 1
cmp dword [ebp - 0x2d8], edi
jle 0x40de4d
mov dword [esp + 0xc], ebx
mov dword [esp + 8], edi
mov dword [esp + 4], 0x148
mov eax, dword [ebp - 0x2dc]
mov dword [esp], eax
call esi
mov edx, dword [ebp - 0x2d0]
lea ecx, [ebp - 0x2bc]
mov eax, ebx
sub esp, 0x10
call dbg.number_from_string
mov eax, dword [ebp - 0x2bc]
fld dword [ebp - 0x2b4]
cmp eax, 1
je 0x40dc84
cmp eax, 2
jne 0x40dbda
fld qword [0x411d48]
fmulp st(1)
fnstcw word [ebp - 0x2ca]
movzx eax, word [ebp - 0x2ca]
or ah, 0xc
mov word [ebp - 0x2cc], ax
fldcw word [ebp - 0x2cc]
fistp dword [ebp - 0x2e0]
fldcw word [ebp - 0x2ca]
mov edx, dword [ebp - 0x2e0]
jmp 0x40dbe6
fnstcw word [ebp - 0x2ca]
fmul dword [0x411d38]
movzx eax, word [ebp - 0x2ca]
or ah, 0xc
mov word [ebp - 0x2cc], ax
fldcw word [ebp - 0x2cc]
fistp dword [ebp - 0x2e0]
fldcw word [ebp - 0x2ca]
mov edx, dword [ebp - 0x2e0]
jmp 0x40dbe6
fmul dword [0x411d40]
fdiv dword [0x411d3c]
fmul dword [0x411d38]
jmp 0x40dc50
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x2d0]
mov dword [esp], eax
call esi
xor eax, eax
sub esp, 8
jmp 0x40da1b
mov dword [ebp - 0x2b4], 0x28
mov eax, dword [ebp - 0x2d4]
mov dword [ebp - 0x2b0], eax
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
mov dword [ebp - 0x2a8], 0x6a9
mov dword [ebp - 0x2ac], eax
sub esp, 4
mov dword [ebp - 0x2a4], global_lpCaption
lea eax, [ebp - 0x2b4]
mov dword [ebp - 0x2a0], 0x40
mov dword [ebp - 0x29c], 0
mov dword [ebp - 0x298], 0
mov dword [ebp - 0x294], 0
mov dword [ebp - 0x290], 0
mov dword [esp], eax
call dword [sym.imp.user32.dll_MessageBoxIndirectW]
sub esp, 4
jmp 0x40d5c4
mov dword [ebp - 0x2b4], 0x28
mov eax, dword [ebp - 0x2d4]
mov dword [ebp - 0x2b0], eax
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
mov dword [ebp - 0x2a8], 0x6b0
mov dword [ebp - 0x2ac], eax
sub esp, 4
jmp 0x40dd28
mov dword [ebp - 0x2d0], edx
mov dword [ebp - 0x2d8], edi
mov edi, dword [ebp - 0x2dc]
mov edx, dword [ebp - 0x2d4]
cmp dword [ebp - 0x2d0], edx
je 0x40d5c4
mov dword [esp + 0x14], 0x41e6a0
fild dword [ebp - 0x2d4]
fdiv dword [0x411d38]
mov dword [esp + 8], str._.2f__s
mov dword [esp + 4], 0xff
mov dword [esp], ebx
fmul dword [0x411d3c]
fdiv dword [0x411d40]
fstp qword [esp + 0xc]
call sym._swprintf.constprop.0
mov dword [esp + 0xc], ebx
mov eax, dword [ebp - 0x2d8]
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 0x40d5c4
mov dword [ebp - 0x2d8], edi
mov edi, dword [ebp - 0x2dc]
jmp 0x40ddda
fld qword [0x411d48]
fmulp st(1)
fnstcw word [ebp - 0x2ca]
movzx eax, word [ebp - 0x2ca]
or ah, 0xc
mov word [ebp - 0x2cc], ax
fldcw word [ebp - 0x2cc]
fistp dword [ebp - 0x2d4]
fldcw word [ebp - 0x2ca]
mov edx, dword [ebp - 0x2d8]
test edx, edx
jg 0x40dbc2
xor eax, eax
mov dword [ebp - 0x2d8], eax
jmp 0x40ddc8
fnstcw word [ebp - 0x2ca]
fmul dword [0x411d38]
movzx eax, word [ebp - 0x2ca]
or ah, 0xc
mov word [ebp - 0x2cc], ax
fldcw word [ebp - 0x2cc]
fistp dword [ebp - 0x2d4]
fldcw word [ebp - 0x2ca]
jmp 0x40de8f
fmul dword [0x411d40]
fdiv dword [0x411d3c]
fmul dword [0x411d38]
jmp 0x40de66
xor ecx, ecx
mov dword [ebp - 0x2d8], ecx
jmp 0x40ddda