Function at 0x4b5e40
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x78
mov eax, dword [0x5ad124]
xor eax, esp
mov dword [esp + 0x74], eax
push esi
push edi
mov edi, ecx
mov dword [esp + 0x4c], edi
cmp dword [edi + 0x58], 0
je 0x4b5eb7
call fcn.004941e0
push 0
lea eax, [esp + 0x60]
push eax
call dword [sym.imp.USER32.dll_CopyRect]
lea eax, [esp + 0x5c]
push eax
push dword [edi + 0x38]
call dword [sym.imp.USER32.dll_GetWindowRect]
test eax, eax
je 0x4b5eb7
push 0
call dword [sym.imp.USER32.dll_GetDC]
mov esi, eax
mov dword [esp + 0x2c], esi
test esi, esi
je 0x4b5eb7
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov dword [esp + 0x10], eax
test eax, eax
jne 0x4b5ecd
push eax
call dword [sym.imp.GDI32.dll_DeleteDC]
push esi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, 0x80004005
pop edi
pop esi
mov ecx, dword [esp + 0x74]
xor ecx, esp
call fcn.00507796
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x68]
sub eax, dword [esp + 0x60]
mov edx, dword [esp + 0x64]
sub edx, dword [esp + 0x5c]
push ecx
push eax
mov ecx, esi
call fcn.004aa8c0
add esp, 8
mov dword [esp + 0x18], eax
test eax, eax
je 0x4b5eb7
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ecx, dword [esp + 0x68]
sub ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x64]
sub edx, dword [esp + 0x5c]
push ecx
push ecx
mov ecx, esi
mov dword [esp + 0x1c], eax
call fcn.004aa8c0
add esp, 8
mov dword [esp + 0x24], eax
cmp dword [esp + 0x14], 0
je 0x4b6259
test eax, eax
je 0x4b6259
push dword [esp + 0x18]
mov esi, dword [esp + 0x14]
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
push dword [esp + 0x24]
mov dword [esp + 0x5c], eax
push dword [esp + 0x18]
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [edi]
mov ecx, edi
push dword [esp + 0x14]
mov dword [esp + 0x58], eax
call dword [edx + 0x78]
mov edx, dword [edi]
cmp edx, vtable.CLayerdWindow.1.0
jne 0x4b626c
mov eax, dword [esp + 0x64]
lea ecx, [esp + 0x6c]
sub eax, dword [esp + 0x5c]
mov esi, dword [edi + 0x58]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x68]
sub eax, dword [esp + 0x60]
mov dword [esp + 0x3c], eax
mov eax, dword [esi]
push ecx
mov ecx, esi
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov eax, dword [eax + 0xa0]
call eax
movups xmm0, xmmword [esp + 0x30]
sub esp, 0x10
mov ecx, esi
mov edx, esp
sub esp, 0x10
movups xmmword [edx], xmm0
mov edx, esp
movups xmm0, xmmword [eax]
movups xmmword [edx], xmm0
mov edx, dword [esp + 0x30]
call fcn.004aa0c0
mov ecx, dword [esp + 0x84]
mov eax, dword [esp + 0x88]
sub eax, dword [esp + 0x80]
sub ecx, dword [esp + 0x7c]
imul eax, ecx
push 0x5b079c
shl eax, 2
push eax
call fcn.00507771
add esp, 0x28
mov dword [esp + 0x20], eax
test eax, eax
je 0x4b6023
mov edx, dword [esp + 0x68]
mov ecx, dword [esp + 0x64]
sub edx, dword [esp + 0x60]
sub ecx, dword [esp + 0x5c]
imul edx, ecx
push eax
shl edx, 2
push edx
push dword [esp + 0x2c]
call dword [sym.imp.GDI32.dll_GetBitmapBits]
mov ecx, dword [esp + 0x64]
mov eax, dword [esp + 0x68]
sub ecx, dword [esp + 0x5c]
sub eax, dword [esp + 0x60]
imul ecx, eax
push 0x5b079c
shl ecx, 2
push ecx
call fcn.00507771
mov esi, eax
add esp, 8
mov dword [esp + 0x1c], esi
test esi, esi
je 0x4b6073
mov edx, dword [esp + 0x68]
mov ecx, dword [esp + 0x64]
sub edx, dword [esp + 0x60]
sub ecx, dword [esp + 0x5c]
imul edx, ecx
push esi
shl edx, 2
push edx
push dword [esp + 0x20]
call dword [sym.imp.GDI32.dll_GetBitmapBits]
cmp dword [esp + 0x20], 0
mov dword [esp + 0x30], 0
je 0x4b6183
test esi, esi
je 0x4b6190
xor eax, eax
mov dword [esp + 0x30], 1
mov dword [esp + 0xc], eax
mov ecx, edi
mov eax, dword [edi]
mov eax, dword [eax + 0x7c]
call eax
mov edx, dword [esp + 0x68]
sub edx, dword [esp + 0x60]
mov ecx, dword [esp + 0x64]
sub ecx, dword [esp + 0x5c]
imul edx, ecx
mov dword [esp + 0x28], eax
shl edx, 2
test edx, edx
jle 0x4b615d
lea edx, [esi + 3]
mov esi, 0xfffffffd
sub esi, dword [esp + 0x1c]
test eax, eax
je 0x4b60dc
mov byte [edx], 0xff
jmp 0x4b6129
mov edi, dword [esp + 0x20]
lea eax, [esi + edx]
mov cl, byte [edx]
mov al, byte [eax + edi + 3]
mov edi, dword [esp + 0x4c]
cmp cl, al
jae 0x4b6108
test cl, cl
movzx eax, al
mov ecx, 0xff
mov dword [esp + 0xc], 1
cmove eax, ecx
mov byte [edx], al
mov cl, byte [edx]
movzx eax, cl
cmp eax, dword [edi + 0xf8]
jge 0x4b6129
test cl, cl
je 0x4b6129
mov al, byte [edi + 0xf8]
mov byte [edx], al
mov dword [esp + 0xc], 1
mov ecx, dword [esp + 0x68]
add edx, 4
sub ecx, dword [esp + 0x60]
mov eax, dword [esp + 0x64]
sub eax, dword [esp + 0x5c]
imul ecx, eax
lea eax, [esi + edx]
shl ecx, 2
cmp eax, ecx
mov eax, dword [esp + 0x28]
jl 0x4b60d3
mov eax, dword [esp + 0xc]
mov esi, dword [esp + 0x1c]
test eax, eax
jne 0x4b6161
mov eax, dword [esp + 0x28]
test eax, eax
je 0x4b6183
mov ecx, dword [esp + 0x68]
mov eax, dword [esp + 0x64]
sub ecx, dword [esp + 0x60]
sub eax, dword [esp + 0x5c]
imul ecx, eax
push esi
shl ecx, 2
push ecx
push dword [esp + 0x20]
call dword [sym.imp.GDI32.dll_SetBitmapBits]
test esi, esi
je 0x4b6190
push esi
call fcn.005077d1
add esp, 4
mov eax, dword [esp + 0x20]
test eax, eax
je 0x4b61a1
push eax
call fcn.005077d1
add esp, 4
cmp dword [esp + 0x30], 0
je 0x4b620f
mov al, byte [edi + 0xde]
mov byte [esp + 0xe], al
mov eax, dword [esp + 0x64]
sub eax, dword [esp + 0x5c]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x68]
sub eax, dword [esp + 0x60]
push 2
mov dword [esp + 0x38], eax
lea eax, [esp + 0x10]
push eax
push 0
lea eax, [esp + 0x58]
mov word [esp + 0x18], 0
push eax
push dword [esp + 0x20]
lea eax, [esp + 0x44]
mov byte [esp + 0x23], 1
push eax
lea eax, [esp + 0x74]
mov dword [esp + 0x64], 0
push eax
push dword [esp + 0x48]
mov dword [esp + 0x70], 0
push dword [edi + 0x38]
call dword [sym.imp.USER32.dll_UpdateLayeredWindow]
push dword [esp + 0x54]
mov esi, dword [esp + 0x18]
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
push dword [esp + 0x24]
mov edi, dword [sym.imp.GDI32.dll_DeleteObject]
call edi
push esi
mov esi, dword [sym.imp.GDI32.dll_DeleteDC]
call esi
push dword [esp + 0x58]
push dword [esp + 0x14]
call dword [sym.imp.GDI32.dll_SelectObject]
push dword [esp + 0x18]
call edi
push dword [esp + 0x10]
call esi
push dword [esp + 0x2c]
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
mov ecx, dword [esp + 0x7c]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.00507796
mov esp, ebp
pop ebp
ret
push esi
mov ecx, edi
call dword [edx + 0x68]
jmp 0x4b5f6d