Function at 0x4315c0
Capabilities:
Get graphical window text

Disassembly:
push 0xffffffffffffffff
push 0x49d518
mov eax, dword fs:[0]
push eax
sub esp, 0x28c
mov eax, dword [0x4c1bd8]
xor eax, esp
mov dword [esp + 0x288], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4c1bd8]
xor eax, esp
push eax
lea eax, [esp + 0x2a0]
mov dword fs:[0], eax
mov esi, ecx
mov ecx, dword [esi + 4]
lea eax, [esp + 0x1c]
push eax
xor edi, edi
push ecx
mov dword [esp + 0x2b0], edi
call dword [sym.imp.USER32.dll_GetClientRect]
mov edx, dword [esp + 0x2b0]
push edx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ecx, dword [esp + 0x24]
sub ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x2b0]
mov ebx, eax
mov eax, dword [esp + 0x28]
sub eax, dword [esp + 0x20]
push eax
push ecx
push edx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x40], eax
mov eax, dword [esi + 0x58]
lea ecx, [esp + 0x58]
push ecx
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], edi
mov dword [esp + 0x5c], edi
call dword [sym.imp.GDI32.dll_CreateBrushIndirect]
mov edx, dword [esp + 0x24]
sub edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x28]
sub ecx, dword [esp + 0x20]
mov dword [esp + 0x6c], edx
push eax
lea edx, [esp + 0x68]
push edx
push ebx
mov dword [esp + 0x50], eax
mov dword [esp + 0x70], edi
mov dword [esp + 0x74], edi
mov dword [esp + 0x7c], ecx
call dword [sym.imp.USER32.dll_FillRect]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
sub ecx, eax
sub edx, eax
lea eax, [esi + 0x5c]
mov dword [esp + 0x34], eax
mov eax, dword [eax]
mov dword [esp + 0x4c], edi
mov dword [esp + 0x54], ecx
mov dword [esp + 0x48], edi
mov dword [esp + 0x50], edx
mov ebp, dword [eax - 0xc]
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], ebp
cmp ebp, edi
jne 0x431745
push 0x206
lea edx, [esp + 0x9a]
xor ecx, ecx
push edi
push edx
mov word [esp + 0xa0], cx
call fcn.00454ce0
mov ecx, dword [esi + 4]
add esp, 0xc
push 0x104
lea eax, [esp + 0x98]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x94]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x431720
mov ecx, dword [esp + 0x34]
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x98]
push edx
call fcn.0040df70
mov ebp, dword [esp + 0x2c]
test byte [esi + 0x44], 4
je 0x431756
xor eax, eax
cmp dword [esi + 0x60], edi
sete al
mov dword [esi + 0x60], eax
cmp dword [esi + 0x48], edi
je 0x431867
mov al, byte [esi + 0x24]
mov ecx, dword [esi + 4]
and al, 1
push ecx
mov byte [esp + 0x1f], al
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
jne 0x431780
mov dword [esp + 0x14], 3
jmp 0x4317a8
mov eax, dword [esi + 0x44]
test al, 4
je 0x431791
mov dword [esp + 0x14], 2
jmp 0x4317a8
cmp byte [esp + 0x1b], 0
jne 0x43194f
test al, 2
jne 0x431957
mov dword [esp + 0x14], edi
cmp dword [esi + 0x60], edi
je 0x4317b2
add dword [esp + 0x14], 4
mov ecx, dword [esi + 0x48]
mov edx, dword [ecx]
mov edx, dword [edx + 4]
lea eax, [esp + 0x38]
push eax
call edx
mov eax, dword [esp + 0x38]
cdq
mov ecx, dword [esp + 0x3c]
and edx, 7
add eax, edx
mov edi, eax
sar edi, 3
mov ebp, edi
imul ebp, dword [esp + 0x14]
lea eax, [edi + ebp]
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x28]
sub eax, ecx
sub eax, dword [esp + 0x20]
push 0
cdq
sub eax, edx
sar eax, 1
add ecx, eax
mov dword [esp + 0x94], ecx
mov ecx, dword [esi + 0x48]
mov ecx, dword [ecx]
mov dword [esp + 0x18], ecx
sub esp, 0x10
mov edx, esp
mov dword [edx], ebp
xor ecx, ecx
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x90]
mov dword [edx + 8], ecx
mov ecx, dword [esp + 0x50]
mov dword [edx + 0xc], ecx
sub esp, 0x10
mov edx, esp
xor ecx, ecx
mov dword [edx], ecx
mov ecx, dword [esi + 0x48]
mov dword [edx + 4], eax
mov eax, dword [esp + 0xb4]
mov dword [edx + 8], edi
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x38]
mov edx, dword [eax + 0x18]
push ebx
call edx
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x48]
mov ebp, dword [esp + 0x2c]
cdq
and edx, 7
add eax, edx
sar eax, 3
lea edx, [ecx + eax + 3]
mov dword [esp + 0x48], edx
xor edi, edi
cmp ebp, edi
je 0x4318c4
mov eax, dword [esi + 0x50]
cmp eax, edi
jne 0x431887
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.USER32.dll_GetParent]
push edi
push edi
push 0x31
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
push 1
push ebx
mov dword [esp + 0x38], eax
call dword [sym.imp.GDI32.dll_SetBkMode]
mov esi, dword [esi + 0x54]
cmp esi, edi
je 0x4318ab
push esi
push ebx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov edx, dword [esp + 0x34]
mov eax, dword [edx]
push 0xa4
lea ecx, [esp + 0x4c]
push ecx
push ebp
push eax
push ebx
call dword [sym.imp.USER32.dll_DrawTextW]
mov eax, dword [esp + 0x28]
sub eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x2b0]
push 0xcc0020
push edi
push edi
push ebx
push eax
mov eax, dword [esp + 0x38]
sub eax, dword [esp + 0x30]
push eax
push edi
push edi
push ecx
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esp + 0x30]
cmp eax, edi
je 0x4318fe
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [esp + 0x40]
push edx
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
push eax
call esi
push ebx
call dword [sym.imp.GDI32.dll_DeleteDC]
mov eax, dword [esp + 0x44]
cmp eax, edi
je 0x431925
push eax
call esi
mov ecx, dword [esp + 0x2a0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x288]
xor ecx, esp
call fcn.00454cc7
add esp, 0x298
ret 4
test al, 1
je 0x4317a4
mov dword [esp + 0x14], 1
jmp 0x4317a8