Function at 0x40c5c0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2fc
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
cmp eax, 0x110
je 0x40c602
cmp eax, 0x111
jne 0x40c5f6
movzx eax, word [ebp + 0x10]
cmp eax, 1
je 0x40c830
cmp eax, 2
je 0x40caab
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret 0x10
mov dword [esp], 0
call sub.kernel32.dll_GetModuleHandleW
sub esp, 4
mov edi, eax
mov dword [esp], ebx
mov dword [esp + 4], 0x7db
call sub.user32.dll_GetDlgItem
sub esp, 8
mov esi, eax
mov dword [esp], ebx
mov dword [esp + 4], 0x7d8
call sub.user32.dll_GetDlgItem
sub esp, 8
mov dword [ebp - 0x2ec], eax
mov dword [esp], ebx
mov dword [esp + 4], 0x7d9
call sub.user32.dll_GetDlgItem
sub esp, 8
mov dword [ebp - 0x2f0], eax
mov dword [esp], ebx
lea ebx, [ebp - 0x216]
mov dword [esp + 4], 0x7da
call sub.user32.dll_GetDlgItem
sub esp, 8
mov dword [ebp - 0x2f4], eax
mov dword [esp + 0xc], 0xff
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x588
mov dword [esp], edi
call sub.user32.dll_LoadStringW
sub esp, 0x10
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0
mov dword [esp + 4], 0x143
mov dword [esp], esi
call sym.unk_169
sub esp, 0x10
mov dword [esp + 0xc], 0xff
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x589
mov dword [esp], edi
call sub.user32.dll_LoadStringW
sub esp, 0x10
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0
mov dword [esp + 4], 0x143
mov dword [esp], esi
call sym.unk_169
sub esp, 0x10
mov dword [esp + 0xc], 0xff
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x58a
mov dword [esp], edi
call sub.user32.dll_LoadStringW
sub esp, 0x10
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0
mov dword [esp + 4], 0x143
mov dword [esp], esi
call sym.unk_169
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 [0x41a724]
mov dword [esp + 8], 0
mov dword [esp + 4], 0x43d
mov dword [esp], eax
call sym.unk_169
movzx edx, word [ebp - 0x2bc]
mov eax, 1
sub esp, 0x10
cmp dx, 2
je 0x40c78e
xor eax, eax
cmp dx, 3
sete al
add eax, eax
mov dword [esp], esi
mov dword [esp + 0xc], 0
mov dword [esp + 8], eax
mov dword [esp + 4], 0x14e
call sym.unk_169
mov edx, dword [ebp - 0x2c0]
mov eax, ebx
add edx, dword [ebp - 0x2c8]
sub esp, 0x10
call sym.unk_102
mov eax, dword [ebp - 0x2ec]
mov dword [esp + 4], ebx
mov dword [esp], eax
call sub.user32.dll_SetWindowTextW
mov edx, dword [ebp - 0x2c4]
mov eax, ebx
sub esp, 8
call sym.unk_102
mov eax, dword [ebp - 0x2f0]
mov dword [esp + 4], ebx
mov dword [esp], eax
call sub.user32.dll_SetWindowTextW
mov edx, dword [ebp - 0x2c0]
mov eax, ebx
sub esp, 8
neg edx
call sym.unk_102
mov eax, dword [ebp - 0x2f4]
mov dword [esp + 4], ebx
mov dword [esp], eax
call sub.user32.dll_SetWindowTextW
xor eax, eax
sub esp, 8
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 0x10
mov dword [esp + 4], 0x7db
mov dword [esp], ebx
call sub.user32.dll_GetDlgItem
sub esp, 8
mov esi, eax
mov dword [esp + 4], 0x7d8
mov dword [esp], ebx
call sub.user32.dll_GetDlgItem
sub esp, 8
mov edi, eax
mov dword [esp + 4], 0x7d9
mov dword [esp], ebx
call sub.user32.dll_GetDlgItem
sub esp, 8
mov dword [ebp - 0x2f0], eax
mov dword [esp + 4], 0x7da
mov dword [esp], ebx
call sub.user32.dll_GetDlgItem
mov dword [ebp - 0x2d4], 0xbc
sub esp, 8
mov dword [ebp - 0x2f4], eax
lea eax, [ebp - 0x2d4]
mov dword [esp + 0xc], eax
mov eax, dword [0x41a724]
mov dword [esp + 8], 0
mov dword [esp + 4], 0x43d
mov dword [esp], eax
mov dword [ebp - 0x2d0], 0x20
call sym.unk_169
mov dword [ebp - 0x2ec], 0
sub esp, 0x10
test byte [ebp - 0x2d0], 0x20
je 0x40c8f0
xor eax, eax
cmp word [ebp - 0x2cc], 0
setne al
mov dword [ebp - 0x2ec], eax
mov dword [esp], esi
lea esi, [ebp - 0x216]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x147
call sym.unk_169
sub esp, 0x10
movzx eax, word [eax + eax + 0x4117a0]
mov dword [esp], edi
mov dword [esp + 8], 0xff
mov dword [esp + 4], esi
mov word [ebp - 0x2bc], ax
call sub.user32.dll_GetWindowTextW
lea ecx, [ebp - 0x2d8]
lea edx, [ebp - 0x2dc]
mov eax, esi
sub esp, 0xc
call sym.unk_77
fld dword [ebp - 0x2dc]
mov edi, eax
mov eax, dword [ebp - 0x2d8]
fstp dword [esp]
call sym.unk_87
mov dword [esp + 8], 0xff
mov dword [ebp - 0x2c0], eax
mov eax, dword [ebp - 0x2f0]
mov dword [esp + 4], esi
mov dword [esp], eax
call sub.user32.dll_GetWindowTextW
lea ecx, [ebp - 0x2d8]
lea edx, [ebp - 0x2dc]
mov eax, esi
sub esp, 0xc
call sym.unk_77
fld dword [ebp - 0x2dc]
test eax, eax
mov eax, dword [ebp - 0x2d8]
fstp dword [esp]
je 0x40cad0
call sym.unk_87
mov dword [esp + 8], 0xff
mov dword [ebp - 0x2c4], eax
mov eax, dword [ebp - 0x2f4]
mov dword [esp + 4], esi
mov dword [esp], eax
call sub.user32.dll_GetWindowTextW
lea ecx, [ebp - 0x2d8]
lea edx, [ebp - 0x2dc]
mov eax, esi
sub esp, 0xc
call sym.unk_77
test eax, eax
je 0x40cb0b
fld dword [ebp - 0x2dc]
mov eax, dword [ebp - 0x2d8]
fstp dword [esp]
call sym.unk_87
mov dword [ebp - 0x2c8], eax
test edi, edi
je 0x40cb25
mov ecx, dword [ebp - 0x2c0]
mov edx, eax
add edx, ecx
js 0x40cb40
test ecx, ecx
jns 0x40ca3a
mov eax, 0
test edx, edx
cmovs edx, eax
mov eax, edx
neg eax
mov dword [ebp - 0x2c8], edx
mov edx, dword [ebp - 0x2ec]
mov dword [ebp - 0x2c0], eax
mov dword [ebp - 0x2d4], 0xbc
mov dword [ebp - 0x2d0], 0xf
test edx, edx
je 0x40ca81
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 [0x41a724]
mov dword [esp + 4], 0x447
mov dword [esp], eax
call sym.unk_169
sub esp, 0x10
mov eax, dword [ebp + 0x10]
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.user32.dll_EndDialog
mov eax, 1
sub esp, 8
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 0x10
call sym.unk_87
mov dword [esp + 8], 0xff
mov dword [ebp - 0x2c4], eax
mov eax, dword [ebp - 0x2f4]
mov dword [esp + 4], esi
mov dword [esp], eax
call sub.user32.dll_GetWindowTextW
lea ecx, [ebp - 0x2d8]
lea edx, [ebp - 0x2dc]
mov eax, esi
sub esp, 0xc
call sym.unk_77
fld dword [ebp - 0x2dc]
mov eax, dword [ebp - 0x2d8]
fstp dword [esp]
call sym.unk_87
mov dword [ebp - 0x2c8], eax
mov eax, dword [0x41a728]
mov ecx, 0x40
mov edx, 0x6a9
call sym.unk_94
jmp 0x40c5f6
test eax, eax
jns 0x40ca2a
neg eax
xor edx, edx
jmp 0x40ca3c