Function at 0x404a30
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x284
mov eax, dword [0x4af480]
xor eax, esp
mov dword [esp + 0x280], eax
cmp dword [ebp + 8], 0
push ebx
push esi
push edi
mov esi, ecx
jne 0x404c17
mov edi, dword [ebp + 0xc]
cmp edi, 0x40d
ja 0x404c90
je 0x404c30
mov eax, edi
sub eax, 1
je 0x404adc
sub eax, 1
je 0x404bb0
sub eax, 0x400
jne 0x404c17
lea eax, [esp + 0x28]
push eax
call fcn.0047bc40
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], 0x4a55a4
call fcn.0047bc20
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x280]
xor ecx, esp
call fcn.0047d2db
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 0x404c05
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
test eax, eax
je 0x404c05
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 0x404b7e
push ebx
push 0xda
push 3
push dword [esi + 0x10]
call fcn.0047aec0
add esp, 0x10
cmp eax, 6
jne 0x404bb0
mov ecx, dword [esi + 0x10]
mov edx, 0xd8
push esi
push 0x404760
call fcn.00416140
add esp, 8
cmp dword [esi + 0x22c], 0
jne 0x404bb0
push ebx
push 0xdf
push 4
push dword [esi + 0x10]
call fcn.0047aec0
add esp, 0x10
test byte [esi + 0x1c], 4
mov eax, dword [esi + 0x10]
je 0x404bdd
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.0047d2db
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.0047d2db
mov esp, ebp
pop ebp
ret 8
push 0
push 0xd7
push dword [esi + 0x10]
call fcn.0047ab10
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x280]
xor ecx, esp
call fcn.0047d2db
mov esp, ebp
pop ebp
ret 8
push 0x4b45c0
push 0
lea ecx, [esp + 0x88]
call fcn.00416700
mov ecx, dword [esi + 0x10]
lea edx, [esp + 0x88]
push 0x102
push 0xd5
call fcn.00418210
mov edi, eax
add esp, 0x10
test edi, edi
je 0x404c74
push edi
mov ecx, esi
call fcn.00404770
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.0047d2db
mov esp, ebp
pop ebp
ret 8
sub edi, 0x40e
je 0x404cce
sub edi, 2
jne 0x404c17
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.0047d2db
mov esp, ebp
pop ebp
ret 8
call fcn.00404980
mov ecx, dword [esp + 0x28c]
mov eax, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0047d2db
mov esp, ebp
pop ebp
ret 8