Function at 0x4c3890
Capabilities:
Get graphical window text
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5a1f8c
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x60f520]
xor eax, esp
mov dword [esp + 0x70], eax
push ebx
push esi
push edi
mov eax, dword [0x60f520]
xor eax, esp
push eax
lea eax, [esp + 0x88]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [esp + 0x2c], ebx
mov eax, dword [ebp + 8]
lea edi, [ebx + 0x34]
push dword [edi]
mov dword [esp + 0x18], eax
mov dword [esp + 0x34], edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x4c3912
sub esp, 8
mov eax, esp
push 0
push SysReAllocString
push 0
push ecx
mov dword [eax], 0
mov ecx, ebx
mov eax, esp
mov dword [eax], 0
push dword [esp + 0x2c]
call fcn.004c19b0
cmp dword [ebp + 0xc], 0
je 0x4c3a5f
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x4c3938
push ecx
mov ecx, edi
call fcn.00496a90
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4c3a5f
mov esi, dword [sym.imp.USER32.dll_GetWindowRect]
lea ecx, [esp + 0x60]
xorps xmm0, xmm0
push ecx
push eax
movdqu xmmword [esp + 0x68], xmm0
movdqu xmmword [esp + 0x58], xmm0
movdqu xmmword [esp + 0x78], xmm0
call esi
lea eax, [esp + 0x50]
push eax
push dword [edi]
call esi
mov eax, dword [esp + 0x6c]
add eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x68]
cdq
sub eax, edx
mov edi, dword [esp + 0x58]
sar eax, 1
mov esi, dword [esp + 0x50]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x60]
push 0
lea eax, [eax + ecx]
cdq
sub eax, edx
mov ecx, eax
mov eax, dword [esp + 0x58]
add eax, dword [esp + 0x60]
cdq
sub eax, edx
sar ecx, 1
mov ebx, eax
mov dword [esp + 0x2c], ecx
lea eax, [edi + esi]
sar ebx, 1
cdq
sub eax, edx
sar eax, 1
sub ecx, eax
add esi, ecx
mov ecx, dword [esp + 0x2c]
sub ecx, eax
mov dword [esp + 0x54], esi
add edi, ecx
mov ecx, dword [esp + 0x28]
mov eax, ecx
mov dword [esp + 0x5c], edi
sub eax, ebx
sub ecx, ebx
add dword [esp + 0x58], eax
lea eax, [esp + 0x74]
add dword [esp + 0x60], ecx
push eax
push 0
push 0x30
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
mov esi, dword [esp + 0x50]
mov ecx, dword [esp + 0x70]
mov eax, dword [esp + 0x58]
cmp esi, ecx
jge 0x4c39ff
sub ecx, esi
add esi, ecx
add eax, ecx
mov dword [esp + 0x50], esi
mov dword [esp + 0x58], eax
mov edx, dword [esp + 0x54]
mov edi, dword [esp + 0x74]
mov ecx, dword [esp + 0x5c]
cmp edx, edi
jge 0x4c3a1d
sub edi, edx
add edx, edi
add ecx, edi
mov dword [esp + 0x54], edx
mov dword [esp + 0x5c], ecx
mov edi, dword [esp + 0x78]
cmp eax, edi
jle 0x4c3a33
sub edi, eax
add esi, edi
add eax, edi
mov dword [esp + 0x50], esi
mov dword [esp + 0x58], eax
mov edi, dword [esp + 0x7c]
cmp ecx, edi
jle 0x4c3a49
sub edi, ecx
add edx, edi
add ecx, edi
mov dword [esp + 0x54], edx
mov dword [esp + 0x5c], ecx
mov edi, dword [esp + 0x30]
sub ecx, edx
push 1
push ecx
sub eax, esi
push eax
push edx
push esi
push dword [edi]
call dword [sym.imp.USER32.dll_MoveWindow]
push dword [ebp + 0x10]
push dword [edi]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x6438a0]
mov ebx, dword [edi]
mov dword [esp + 0x24], ebx
test al, 1
jne 0x4c3ac7
or eax, 1
mov dword [0x6438a0], eax
mov dword [esp + 0x90], 0
mov dword [0x6438a4], 0
mov dword [0x6438a8], 0
call fcn.0041b090
push 0x5aa140
mov dword [0x6438a4], eax
call fcn.00551ad4
mov dword [esp + 0x94], 0xffffffff
add esp, 4
mov eax, dword [0x6438a0]
test al, 2
jne 0x4c3afc
or eax, 2
mov dword [0x6438a0], eax
push ecx
mov dword [esp + 0x94], 1
call fcn.004c4ac0
push 0x5aa100
call fcn.00551ad4
add esp, 4
mov dword [esp + 0x90], 0xffffffff
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
call fcn.0041b090
mov dword [esp + 0x1c], eax
mov dword [esp + 0x90], 2
cmp dword [0x6438c0], 0
je 0x4c3b6a
push ecx
lea eax, [esp + 0x64]
push eax
lea eax, [esp + 0x58]
push eax
call fcn.004c4900
mov ecx, eax
call fcn.004bdf70
mov esi, dword [eax]
test esi, esi
je 0x4c3b48
mov esi, dword [esi]
mov edx, dword [eax + 8]
mov eax, edx
mov ecx, dword [esi + 8]
and edx, 3
shr eax, 2
dec ecx
and ecx, eax
mov eax, dword [esi + 4]
push 0
mov eax, dword [eax + ecx*4]
push dword [eax + edx*4]
call dword [sym.imp.USER32.dll_EnableWindow]
lea eax, [esp + 0x24]
push eax
call fcn.004c4720
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4c3c51
push 0xffffffffffffffec
push eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov esi, eax
lea ecx, [esp + 0x1c]
lea eax, [esp + 0x14]
push eax
call fcn.00447520
mov dword [eax], esi
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.004c4600
mov eax, dword [eax]
cmp eax, dword [0x6438a4]
lea eax, [esp + 0x14]
push eax
je 0x4c3bc2
call fcn.004c4320
inc dword [eax]
jmp 0x4c3bcd
call fcn.004c4320
mov dword [eax], 1
mov edx, dword [esp + 0x1c]
mov esi, dword [edx]
cmp esi, edx
je 0x4c3c55
mov edi, dword [sym.imp.USER32.dll_SetWindowPos]
lea ecx, [ecx]
test byte [esi + 0x14], 8
je 0x4c3bf5
push 3
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push ebx
call edi
push 0
push dword [esi + 0x10]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp byte [esi + 0xd], 0
jne 0x4c3c47
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
jne 0x4c3c2c
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
jne 0x4c3c47
lea esp, [esp]
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
je 0x4c3c20
jmp 0x4c3c47
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x4c3c45
cmp esi, dword [eax + 8]
jne 0x4c3c45
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x4c3c35
mov esi, eax
mov edx, dword [esp + 0x1c]
cmp esi, edx
jne 0x4c3be0
jmp 0x4c3c55
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x2c]
cmp byte [eax + 0xd8], 0
jne 0x4c3dee
push 0
push 0
push 0
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x4c3dea
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov edi, eax
call fcn.0040bce0
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x4c3e6d
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea esi, [eax + 0x10]
mov dword [esp + 0x28], esi
mov byte [esp + 0x90], 3
mov ecx, 1
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, 0x400
or ecx, eax
jge 0x4c3cd7
push 0x400
lea ecx, [esp + 0x2c]
call fcn.0040c110
mov esi, dword [esp + 0x28]
push 0x400
push esi
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
push dword [esi - 8]
push esi
call fcn.00551cd2
add esp, 8
test eax, eax
js 0x4c3e63
cmp eax, dword [esi - 8]
jg 0x4c3e63
mov dword [esi - 0xc], eax
xor ecx, ecx
mov word [esi + eax*2], cx
mov edx, dword [esp + 0x1c]
mov ecx, edx
mov eax, dword [edx + 4]
cmp byte [eax + 0xd], 0
jne 0x4c3d47
lea esp, [esp]
cmp dword [eax + 0x10], edi
jae 0x4c3d2a
mov eax, dword [eax + 8]
jmp 0x4c3d2e
mov ecx, eax
mov eax, dword [eax]
cmp byte [eax + 0xd], 0
je 0x4c3d20
cmp ecx, edx
je 0x4c3d47
cmp edi, dword [ecx + 0x10]
jb 0x4c3d47
mov dword [esp + 0x24], ecx
lea eax, [esp + 0x24]
jmp 0x4c3d4f
mov dword [esp + 0x18], edx
lea eax, [esp + 0x18]
cmp dword [eax], edx
je 0x4c3d63
push ebx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push 9
push ebx
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [esp + 0x34], ebx
jne 0x4c3d94
mov eax, dword [esp + 0x38]
cmp eax, 0x10
je 0x4c3e34
cmp eax, 2
je 0x4c3e34
cmp eax, 0x112
jne 0x4c3d94
cmp dword [esp + 0x3c], 0xf060
je 0x4c3e34
mov edi, dword [esp + 0x2c]
cmp byte [edi + 0xd8], 0
jne 0x4c3e3f
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
add esi, 0xfffffff0
mov byte [esp + 0x90], 2
or ecx, 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4c3ddd
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [edi + 0xd8], 0
je 0x4c3c66
mov edx, dword [esp + 0x1c]
mov ecx, dword [0x6438c0]
mov esi, 0
mov eax, dword [0x6438bc]
dec ecx
mov dword [0x6438c0], ecx
cmove eax, esi
mov dword [0x6438bc], eax
test ecx, ecx
je 0x4c3e9f
push ecx
lea eax, [esp + 0x54]
push eax
lea eax, [esp + 0x68]
push eax
call fcn.004c4900
mov ecx, eax
call fcn.004bdf70
mov esi, dword [eax]
test esi, esi
jne 0x4c3e77
jmp 0x4c3e79
mov eax, dword [esp + 0x2c]
mov byte [eax + 0xd8], 1
add esi, 0xfffffff0
mov byte [esp + 0x90], 2
or ecx, 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4c3dea
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x4c3dea
push 0x80070057
call fcn.0040c390
push 0x80004005
call fcn.0040c390
mov esi, dword [esi]
mov edx, dword [eax + 8]
mov eax, edx
mov ecx, dword [esi + 8]
and edx, 3
shr eax, 2
dec ecx
and ecx, eax
mov eax, dword [esi + 4]
push 1
mov eax, dword [eax + ecx*4]
push dword [eax + edx*4]
call dword [sym.imp.USER32.dll_EnableWindow]
mov edx, dword [esp + 0x1c]
mov esi, dword [edx]
mov ebx, dword [0x6438a4]
cmp esi, edx
je 0x4c3f3f
nop
mov eax, dword [ebx + 4]
mov ecx, ebx
cmp byte [eax + 0xd], 0
jne 0x4c3ef2
mov edi, dword [esi + 0x10]
mov edi, edi
cmp dword [eax + 0x10], edi
jae 0x4c3eca
mov eax, dword [eax + 8]
jmp 0x4c3ece
mov ecx, eax
mov eax, dword [eax]
cmp byte [eax + 0xd], 0
je 0x4c3ec0
cmp ecx, ebx
je 0x4c3ef2
cmp edi, dword [ecx + 0x10]
jb 0x4c3ef2
lea eax, [esi + 0x10]
push eax
call fcn.004c4320
dec dword [eax]
mov edx, dword [esp + 0x1c]
mov ebx, dword [0x6438a4]
cmp byte [esi + 0xd], 0
jne 0x4c3f37
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
jne 0x4c3f1c
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
jne 0x4c3f37
jmp 0x4c3f10
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
je 0x4c3f10
jmp 0x4c3f37
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x4c3f35
cmp esi, dword [eax + 8]
jne 0x4c3f35
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x4c3f25
mov esi, eax
cmp esi, edx
jne 0x4c3eb0
mov esi, dword [ebx]
cmp esi, ebx
je 0x4c404f
lea esp, [esp]
cmp dword [esi + 0x14], 0
jg 0x4c4001
mov eax, dword [edx + 4]
mov ecx, edx
cmp byte [eax + 0xd], 0
jne 0x4c3f8f
mov edi, dword [esi + 0x10]
cmp dword [eax + 0x10], edi
jae 0x4c3f72
mov eax, dword [eax + 8]
jmp 0x4c3f76
mov ecx, eax
mov eax, dword [eax]
cmp byte [eax + 0xd], 0
je 0x4c3f68
cmp ecx, edx
je 0x4c3f8f
cmp edi, dword [ecx + 0x10]
jb 0x4c3f8f
mov dword [esp + 0x18], ecx
lea eax, [esp + 0x18]
jmp 0x4c3f97
mov dword [esp + 0x24], edx
lea eax, [esp + 0x24]
mov eax, dword [eax]
cmp eax, edx
je 0x4c3fa8
push 1
push dword [eax + 0x10]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp byte [esi + 0xd], 0
mov eax, esi
jne 0x4c3fea
mov ecx, dword [esi + 8]
cmp byte [ecx + 0xd], 0
jne 0x4c3fcf
mov esi, ecx
mov ecx, dword [esi]
cmp byte [ecx + 0xd], 0
jne 0x4c3fea
mov esi, ecx
mov ecx, dword [esi]
cmp byte [ecx + 0xd], 0
je 0x4c3fc3
jmp 0x4c3fea
mov ecx, dword [esi + 4]
cmp byte [ecx + 0xd], 0
jne 0x4c3fe8
cmp esi, dword [ecx + 8]
jne 0x4c3fe8
mov esi, ecx
mov ecx, dword [ecx + 4]
cmp byte [ecx + 0xd], 0
je 0x4c3fd8
mov esi, ecx
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.004c43a0
mov edx, dword [esp + 0x1c]
mov ebx, dword [0x6438a4]
jmp 0x4c4047
cmp byte [esi + 0xd], 0
jne 0x4c4047
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
jne 0x4c402c
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
jne 0x4c4047
lea ebx, [ebx]
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
je 0x4c4020
jmp 0x4c4047
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x4c4045
cmp esi, dword [eax + 8]
jne 0x4c4045
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x4c4035
mov esi, eax
cmp esi, ebx
jne 0x4c3f50
cmp dword [esp + 0x38], 0x12
jne 0x4c4060
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
jmp 0x4c4076
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
mov esi, dword [esp + 0x30]
push dword [esi]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4c408e
push dword [esi]
call dword [sym.imp.USER32.dll_DestroyWindow]
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x2c]
push ecx
push dword [ecx]
mov esi, dword [eax + 0xd4]
lea ecx, [esp + 0x24]
lea eax, [esp + 0x20]
push eax
call fcn.00428d00
push dword [esp + 0x1c]
call fcn.00551995
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x88]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.0055199a
mov esp, ebp
pop ebp
ret 0xc