Function at 0x404460
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, 0x28
mov eax, dword [ecx]
mov ebx, dword [ecx + 8]
mov esi, dword [ecx + 0xc]
mov dword [ebp - 0x1c], eax
mov eax, dword [ecx + 4]
cmp eax, 0x110
je 0x4044c0
xor edx, edx
cmp eax, 0x111
jne 0x4044a9
cmp ebx, 1
je 0x404650
mov edx, 1
cmp ebx, 2
je 0x4047e8
lea esp, [ebp - 0x10]
mov eax, edx
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x10
mov edi, dword [ebp - 0x1c]
mov ebx, dword [sym.imp.user32.dll_GetDlgItem]
mov dword [0x417884], esi
mov dword [esp + 4], 0x3e8
mov dword [esp], edi
call ebx
sub esp, 8
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [sym.imp.user32.dll_SetWindowTextW]
mov eax, dword [0x417884]
mov dword [ebp - 0x1c], edi
sub esp, 8
mov esi, dword [eax + 0x208]
mov dword [esp], edi
mov dword [esp + 4], 0x3e9
call ebx
and esi, 1
sub esp, 8
mov dword [esp + 8], esi
mov esi, dword [sym.imp.user32.dll_SendMessageW]
mov dword [esp + 0xc], 0
mov dword [esp + 4], 0xf1
mov dword [esp], eax
call esi
mov eax, dword [0x417884]
sub esp, 0x10
mov edi, dword [eax + 0x208]
mov eax, dword [ebp - 0x1c]
mov dword [esp + 4], 0x3ea
shr edi, 1
mov dword [esp], eax
call ebx
and edi, 1
sub esp, 8
mov dword [esp + 8], edi
mov dword [esp + 0xc], 0
mov dword [esp + 4], 0xf1
mov dword [esp], eax
call esi
mov eax, dword [0x417884]
sub esp, 0x10
mov edi, dword [eax + 0x208]
mov eax, dword [ebp - 0x1c]
mov dword [esp + 4], 0x3eb
shr edi, 2
mov dword [esp], eax
call ebx
and edi, 1
sub esp, 8
mov dword [esp + 8], edi
mov dword [esp + 0xc], 0
mov dword [esp + 4], 0xf1
mov dword [esp], eax
call esi
mov eax, dword [0x417884]
sub esp, 0x10
mov edi, dword [eax + 0x208]
mov eax, dword [ebp - 0x1c]
mov dword [esp + 4], 0x3ec
shr edi, 3
mov dword [esp], eax
call ebx
and edi, 1
sub esp, 8
mov dword [esp + 8], edi
mov dword [esp + 0xc], 0
mov dword [esp + 4], 0xf1
mov dword [esp], eax
call esi
mov eax, dword [0x417884]
sub esp, 0x10
mov edi, dword [eax + 0x208]
mov eax, dword [ebp - 0x1c]
mov dword [esp + 4], 0x3ed
shr edi, 4
mov dword [esp], eax
call ebx
and edi, 1
sub esp, 8
mov dword [esp + 8], edi
mov dword [esp + 0xc], 0
mov dword [esp + 4], 0xf1
mov dword [esp], eax
call esi
mov edx, 1
sub esp, 0x10
lea esp, [ebp - 0x10]
mov eax, edx
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x10
mov edi, dword [ebp - 0x1c]
mov esi, dword [sym.imp.user32.dll_GetDlgItem]
mov dword [ebp - 0x24], ebx
mov dword [esp + 4], 0x3e8
mov ebx, dword [0x417884]
mov dword [esp], edi
call esi
sub esp, 8
mov dword [esp + 4], ebx
mov ebx, edi
mov dword [esp + 8], 0x104
mov dword [esp], eax
call dword [sym.imp.user32.dll_GetWindowTextW]
sub esp, 0xc
mov dword [esp], edi
mov dword [esp + 4], 0x3e9
call esi
mov edi, dword [sym.imp.user32.dll_SendMessageW]
sub esp, 8
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0xf2
mov dword [esp], eax
call edi
mov dword [ebp - 0x1c], ebx
sub esp, 0x10
mov dword [ebp - 0x20], eax
mov dword [esp], ebx
mov dword [esp + 4], 0x3ea
call esi
sub esp, 8
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0xf2
mov dword [esp], eax
call edi
mov edx, dword [ebp - 0x1c]
sub esp, 0x10
mov ebx, eax
mov dword [esp], edx
add ebx, ebx
mov dword [esp + 4], 0x3eb
and ebx, 2
call esi
sub esp, 8
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0xf2
mov dword [esp], eax
call edi
mov edx, dword [ebp - 0x1c]
shl eax, 2
sub esp, 0x10
and eax, 4
mov dword [esp], edx
or ebx, eax
mov eax, dword [ebp - 0x20]
mov dword [esp + 4], 0x3ec
and eax, 1
or ebx, eax
call esi
sub esp, 8
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0xf2
mov dword [esp], eax
call edi
mov edx, dword [ebp - 0x1c]
shl eax, 3
sub esp, 0x10
and eax, 8
mov dword [esp], edx
or ebx, eax
mov dword [esp + 4], 0x3ed
call esi
sub esp, 8
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0xf2
mov dword [esp], eax
call edi
mov edx, dword [ebp - 0x1c]
mov ecx, dword [0x417884]
shl eax, 4
sub esp, 0x10
and eax, 0x10
or eax, ebx
mov dword [ecx + 0x208], eax
mov dword [esp], edx
mov dword [esp + 4], 1
call dword [sym.imp.user32.dll_EndDialog]
mov edx, dword [ebp - 0x24]
sub esp, 8
jmp 0x4044a9
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], edx
mov dword [esp + 4], 2
mov dword [esp], eax
call dword [sym.imp.user32.dll_EndDialog]
mov edx, dword [ebp - 0x20]
sub esp, 8
jmp 0x4044a9