Function at 0x46ac90
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x188
mov eax, dword [0x537d24]
push ebx
push ebp
mov ecx, 1
xor ebp, ebp
dec eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x54], ebp
je 0x46acb5
dec eax
je 0x46acb5
dec eax
jne 0x46acbc
mov ebx, 0xbfb8bf
jmp 0x46acc0
mov ebx, dword [esp + 0x50]
push esi
push edi
mov edi, dword [esp + 0x19c]
mov dword [esp + 0x48], ecx
lea ecx, [esp + 0x3c]
mov dword [esp + 0x4c], ebp
mov eax, dword [edi]
push ecx
mov dword [esp + 0x40], eax
call fcn.00468a20
mov eax, dword [edi]
lea edx, [esp + 0x10]
push edx
push eax
call dword [fcn.004965a8]
mov edx, dword [edi]
lea ecx, [esp + 0x60]
push 0x100
push ecx
push edx
call dword [0x49661c]
mov esi, dword [0x49657c]
test eax, eax
jne 0x46ad4d
lea eax, [esp + 0x20]
mov dword [esp + 0x28], ebp
push eax
push 0x53812c
mov dword [esp + 0x40], 2
call fcn.0046ac70
mov ecx, dword [esp + 0x4c]
add esp, 4
push eax
push 0x53812c
push ecx
call dword [0x496070]
mov eax, dword [esp + 0x24]
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x14], eax
jmp 0x46ae2e
mov edx, dword [edi]
push ebp
push ebp
push 0x31
push edx
call dword [fcn.004965c8]
push eax
mov eax, dword [esp + 0x48]
push eax
call dword [fcn.00496118]
lea ecx, [esp + 0x20]
lea edx, [esp + 0x60]
push ecx
push edx
mov dword [esp + 0x64], eax
call fcn.0046ac70
mov ecx, dword [esp + 0x4c]
add esp, 4
push eax
lea eax, [esp + 0x68]
push eax
push ecx
call dword [0x496070]
push 0xfffffffffffffff0
mov eax, dword [esp + 0x28]
cdq
sub eax, edx
mov edx, dword [edi]
sar eax, 1
push edx
mov dword [esp + 0x1c], eax
call dword [fcn.0049655c]
mov ecx, eax
and ecx, 0x100
je 0x46adb4
test ah, 2
je 0x46adc1
test ah, 2
je 0x46adbd
cmp ecx, ebp
je 0x46add2
cmp ecx, ebp
jne 0x46ade9
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
add eax, 0xa
mov dword [esp + 0x2c], eax
jmp 0x46adfe
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
lea eax, [edx - 0xa]
mov dword [esp + 0x34], eax
sub eax, ecx
mov dword [esp + 0x2c], eax
jmp 0x46ae02
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
sub eax, ecx
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x2c], eax
add ecx, eax
mov dword [esp + 0x34], ecx
mov eax, dword [esp + 0x24]
mov ecx, dword [edi + 0x14]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x44]
lea edx, [esp + 0x2c]
push ecx
push edx
push eax
mov dword [esp + 0x3c], ebp
call esi
mov eax, dword [esp + 0x24]
cdq
sub eax, edx
sar eax, 1
add eax, 2
mov dword [esp + 0x38], eax
mov ecx, dword [esp + 0x18]
mov edx, dword [edi + 0x14]
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x44]
lea eax, [esp + 0x2c]
push edx
push eax
push ecx
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x38], ebp
call esi
mov eax, dword [edi + 0x14]
lea ecx, [esp + 0x2c]
mov edx, dword [esp + 0x1c]
push eax
mov dword [esp + 0x3c], edx
mov edx, dword [esp + 0x48]
push ecx
push edx
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x38], ebp
mov dword [esp + 0x40], 2
call esi
mov dword [esp + 0x2c], ebp
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov dword [esp + 0x38], eax
mov dword [esp + 0x34], edx
mov edx, dword [esp + 0x44]
lea ecx, [eax - 2]
mov eax, dword [edi + 0x14]
mov dword [esp + 0x30], ecx
lea ecx, [esp + 0x2c]
push eax
push ecx
push edx
call esi
mov dword [esp + 0x30], ebp
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], edx
mov edx, dword [esp + 0x44]
lea ecx, [eax - 2]
mov eax, dword [edi + 0x14]
mov dword [esp + 0x2c], ecx
lea ecx, [esp + 0x2c]
push eax
push ecx
push edx
call esi
push ebx
call dword [fcn.004960fc]
mov esi, eax
lea eax, [esp + 0x10]
mov ecx, dword [esp + 0x44]
push esi
push eax
push ecx
call dword [0x49664c]
push esi
call dword [fcn.0049608c]
push ebp
push ebp
mov edx, dword [esp + 0x4c]
push edx
call dword [0x4960d8]
mov esi, dword [0x496098]
mov dword [edi + 0xc], eax
mov ecx, dword [esp + 0x44]
push eax
mov eax, dword [esp + 0x18]
push eax
push ebp
push ecx
call esi
mov edx, dword [edi + 0xc]
mov eax, dword [esp + 0x14]
push edx
inc eax
push eax
mov ecx, dword [esp + 0x4c]
push ebp
push ecx
call esi
mov edx, dword [edi + 0xc]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x44]
add eax, 2
push edx
push eax
push ebp
push ecx
call esi
mov edx, dword [edi + 0xc]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x44]
push edx
push eax
push 1
push ecx
call esi
mov edx, dword [edi + 0xc]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x44]
push edx
push eax
push 2
push ecx
call esi
push ebx
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x48]
inc edx
push edx
push 2
push eax
call esi
push ebx
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x48]
add ecx, 2
push ecx
push 1
push edx
call esi
mov eax, dword [edi + 0xc]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push eax
mov eax, dword [esp + 0x48]
dec edx
push ecx
push edx
push eax
call esi
mov ecx, dword [edi + 0xc]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x48]
add eax, 0xfffffffe
push edx
push eax
push ecx
call esi
mov edx, dword [edi + 0xc]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
push edx
mov edx, dword [esp + 0x48]
add ecx, 0xfffffffd
push eax
push ecx
push edx
call esi
mov eax, dword [edi + 0xc]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
inc ecx
push eax
push ecx
mov eax, dword [esp + 0x4c]
dec edx
push edx
push eax
call esi
mov ecx, dword [edi + 0xc]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
add edx, 2
push ecx
mov ecx, dword [esp + 0x48]
dec eax
push edx
push eax
push ecx
call esi
push ebx
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x48]
inc edx
add eax, 0xfffffffd
push edx
push eax
push ecx
call esi
push ebx
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x48]
add edx, 2
add eax, 0xfffffffe
push edx
push eax
push ecx
call esi
mov edx, dword [edi + 0xc]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x44]
dec eax
push edx
push eax
push ebp
push ecx
call esi
mov edx, dword [edi + 0xc]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x44]
add eax, 0xfffffffe
push edx
push eax
push ebp
push ecx
call esi
mov edx, dword [edi + 0xc]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x44]
add eax, 0xfffffffd
push edx
push eax
push ebp
push ecx
call esi
mov edx, dword [edi + 0xc]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x44]
dec eax
push edx
push eax
push 1
push ecx
call esi
mov edx, dword [edi + 0xc]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x44]
dec eax
push edx
push eax
push 2
push ecx
call esi
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x44]
add edx, 0xfffffffd
push ebx
push edx
push 1
push eax
call esi
push ebx
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x48]
add ecx, 0xfffffffe
push ecx
push 2
push edx
call esi
mov eax, dword [edi + 0xc]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
dec ecx
push eax
mov eax, dword [esp + 0x48]
dec edx
push ecx
push edx
push eax
call esi
mov ecx, dword [edi + 0xc]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
add edx, 0xfffffffe
push ecx
mov ecx, dword [esp + 0x48]
dec eax
push edx
push eax
push ecx
call esi
mov edx, dword [edi + 0xc]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
add eax, 0xfffffffd
push edx
mov edx, dword [esp + 0x48]
dec ecx
push eax
push ecx
push edx
call esi
mov eax, dword [edi + 0xc]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
dec ecx
push eax
mov eax, dword [esp + 0x48]
add edx, 0xfffffffe
push ecx
push edx
push eax
call esi
mov ecx, dword [edi + 0xc]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
dec edx
push ecx
mov ecx, dword [esp + 0x48]
add eax, 0xfffffffd
push edx
push eax
push ecx
call esi
push ebx
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x48]
add edx, 0xfffffffe
add eax, 0xfffffffd
push edx
push eax
push ecx
call esi
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x44]
add edx, 0xfffffffd
push ebx
add eax, 0xfffffffe
push edx
push eax
push ecx
call esi
mov ebx, 1
mov dword [esp + 0x14], ebp
cmp dword [esp + 0x28], ebx
jne 0x46b26d
mov eax, dword [esp + 0x44]
lea edx, [esp + 0x160]
push edx
push eax
call dword [0x4960b8]
lea ecx, [esp + 0x60]
push ecx
call fcn.0046ac70
mov edx, dword [edi]
add esp, 4
push 0xfffffffffffffff0
push edx
call dword [fcn.0049655c]
mov ecx, eax
and ecx, 0x100
je 0x46b1e0
test ah, 2
jne 0x46b1e9
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x10]
mov ebx, 8
add eax, 0xa
add edx, 9
cmp eax, ebx
mov dword [esp + 0x28], ebp
mov dword [esp + 0x10], edx
jle 0x46b23b
mov eax, dword [esp + 0x24]
mov ecx, dword [edi + 0xc]
cdq
sub eax, edx
mov edx, dword [esp + 0x44]
sar eax, 1
push ecx
push eax
push ebx
push edx
call esi
inc ebx
mov eax, dword [esp + 0x20]
add eax, 0xa
cmp ebx, eax
jl 0x46b1bc
jmp 0x46b23b
test ah, 2
je 0x46b29c
cmp ecx, ebp
jne 0x46b2a4
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
sub eax, 0xa
mov dword [esp + 0x28], 2
mov dword [esp + 0x18], eax
sub eax, ecx
add ecx, eax
mov dword [esp + 0x58], eax
cmp eax, ecx
mov ebx, eax
jge 0x46b23b
mov edx, dword [edi + 0xc]
mov eax, dword [esp + 0x24]
push edx
cdq
sub eax, edx
sar eax, 1
push eax
mov eax, dword [esp + 0x4c]
push ebx
push eax
call esi
inc ebx
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x58]
add edx, ecx
cmp ebx, edx
jl 0x46b216
mov eax, dword [edi + 0x10]
mov ecx, dword [esp + 0x44]
push eax
push ecx
call dword [0x4960b0]
lea edx, [esp + 0x10]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x44]
or al, 0x20
push eax
push edx
lea eax, [esp + 0x68]
push 0xffffffffffffffff
push eax
push ecx
call dword [0x496620]
mov ebx, 1
mov eax, dword [esp + 0x5c]
pop edi
cmp eax, ebp
pop esi
je 0x46b283
mov edx, dword [esp + 0x3c]
push eax
push edx
call dword [fcn.00496118]
lea eax, [esp + 0x34]
mov dword [esp + 0x40], ebx
push eax
call fcn.00468af0
pop ebp
pop ebx
add esp, 0x188
ret 4
cmp ecx, ebp
je 0x46b19d
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
sub eax, ecx
mov dword [esp + 0x28], ebx
cdq
sub eax, edx
mov ebx, eax
sar ebx, 1
sub ebx, 5
lea ecx, [ebx + ecx + 0xa]
cmp ebx, ecx
jge 0x46b23b
lea edx, [ebx + 0xa]
mov dword [esp + 0x58], edx
mov eax, dword [edi + 0xc]
mov ecx, dword [esp + 0x44]
push eax
mov eax, dword [esp + 0x28]
cdq
sub eax, edx
sar eax, 1
push eax
push ebx
push ecx
call esi
inc ebx
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x58]
add eax, edx
cmp ebx, eax
jl 0x46b2cf
jmp 0x46b23b