Function at 0x404a50
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x284
mov eax, dword [0x4ae480]
xor eax, esp
mov dword [esp + 0x280], eax
cmp dword [ebp + 8], 0
push ebx
push esi
push edi
mov esi, ecx
jne 0x404c37
mov edi, dword [ebp + 0xc]
cmp edi, 0x40d
ja 0x404cb0
je 0x404c50
mov eax, edi
sub eax, 1
je 0x404afc
sub eax, 1
je 0x404bd0
sub eax, 0x400
jne 0x404c37
lea eax, [esp + 0x28]
push eax
call fcn.0047abb0
lea eax, [esp + 0x28]
mov dword [esp + 0x44], 0x40f
push eax
push dword [esi + 0x10]
mov dword [esp + 0x60], 0xa5
mov dword [esp + 0x3c], 0xa6
mov dword [esp + 0x6c], 0x4a453c
call fcn.0047ab90
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x280]
xor ecx, esp
call fcn.0047c26b
mov esp, ebp
pop ebp
ret 8
push 0x40f
push dword [esi + 0x10]
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0
push 0
push 0x1004
push dword [esi + 0x228]
mov ebx, eax
mov dword [esp + 0x1c], ebx
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x404c25
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
test eax, eax
je 0x404c25
push 0x104
lea ebx, [esi + 0x20]
push ebx
push dword [esp + 0x14]
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 2
push eax
push 0xffffffffffffffff
push 0x1053
push dword [esi + 0x228]
xorps xmm0, xmm0
mov dword [esp + 0x24], ebx
movlpd qword [esp + 0x28], xmm0
movlpd qword [esp + 0x30], xmm0
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
js 0x404b9e
push ebx
push 0xda
push 3
push dword [esi + 0x10]
call fcn.00479dc0
add esp, 0x10
cmp eax, 6
jne 0x404bd0
mov ecx, dword [esi + 0x10]
mov edx, 0xd8
push esi
push 0x404780
call fcn.004160e0
add esp, 8
cmp dword [esi + 0x22c], 0
jne 0x404bd0
push ebx
push 0xdf
push 4
push dword [esi + 0x10]
call fcn.00479dc0
add esp, 0x10
test byte [esi + 0x1c], 4
mov eax, dword [esi + 0x10]
je 0x404bfd
push edi
push eax
call dword [sym.imp.USER32.dll_EndDialog]
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x280]
xor ecx, esp
call fcn.0047c26b
mov esp, ebp
pop ebp
ret 8
push 0
push edi
push 0x12
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x280]
xor ecx, esp
call fcn.0047c26b
mov esp, ebp
pop ebp
ret 8
push 0
push 0xd7
push dword [esi + 0x10]
call fcn.00479a10
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x280]
xor ecx, esp
call fcn.0047c26b
mov esp, ebp
pop ebp
ret 8
push 0x4b35d0
push 0
lea ecx, [esp + 0x88]
call fcn.00416680
mov ecx, dword [esi + 0x10]
lea edx, [esp + 0x88]
push 0x102
push 0xd5
call fcn.00418180
mov edi, eax
add esp, 0x10
test edi, edi
je 0x404c94
push edi
mov ecx, esi
call fcn.00404790
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x280]
xor ecx, esp
call fcn.0047c26b
mov esp, ebp
pop ebp
ret 8
sub edi, 0x40e
je 0x404cee
sub edi, 2
jne 0x404c37
push edi
push edi
push 0x1009
push dword [esi + 0x228]
call dword [sym.imp.USER32.dll_SendMessageW]
lea eax, [edi + 1]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x280]
xor ecx, esp
call fcn.0047c26b
mov esp, ebp
pop ebp
ret 8
call fcn.004049a0
mov ecx, dword [esp + 0x28c]
mov eax, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0047c26b
mov esp, ebp
pop ebp
ret 8