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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x9c
mov eax, dword [0x572bb0]
xor eax, esp
mov dword [esp + 0x98], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
mov dword [esp + 0x2c], esi
call fcn.004e3880
test al, al
jne 0x4a0e69
cmp dword [ebx + 0x5c], 0
je 0x4a123b
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebx + 0x1c]
mov edx, dword [ebx + 0x20]
mov dword [ebx + 0x40], eax
mov eax, dword [ebx + 0x24]
sub eax, ecx
mov dword [esp + 0x44], 0
mov dword [esp + 0x54], eax
mov eax, dword [ebx + 0x28]
sub eax, edx
mov dword [esp + 0x48], 0
mov dword [esp + 0x58], eax
mov al, byte [ebx + 0x40]
push esi
mov dword [esp + 0x50], ecx
mov dword [esp + 0x54], edx
mov word [esp + 0x20], 0
mov byte [esp + 0x22], al
mov byte [esp + 0x23], 1
call dword [sym.imp.USER32.dll_GetDC]
push eax
mov dword [esp + 0x24], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x6c]
push eax
push dword [ebx + 0x10]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov esi, dword [esp + 0x78]
mov edi, dword [esp + 0x74]
sub esi, dword [esp + 0x70]
sub edi, dword [esp + 0x6c]
push esi
push edi
push dword [esp + 0x28]
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
push dword [esp + 0x14]
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, edi
mov dword [esp + 0xa0], 0
shl eax, 5
xorps xmm0, xmm0
add eax, 0x1f
mov dword [esp + 0x7c], 0x28
sar eax, 3
and eax, 0xfffffffc
mov dword [esp + 0x30], 0
imul eax, esi
push 0
movdqu xmmword [esp + 0x94], xmm0
push 0
movdqu xmmword [esp + 0x88], xmm0
mov dword [esp + 0x98], eax
lea eax, [esp + 0x38]
push eax
push 0
lea eax, [esp + 0x8c]
mov dword [esp + 0x90], edi
push eax
push 0
mov dword [esp + 0x9c], esi
mov dword [esp + 0xa0], 0x200001
mov dword [esp + 0xa4], 0
mov dword [esp + 0xb4], 0
call dword [sym.imp.GDI32.dll_CreateDIBSection]
imul esi, edi
mov dword [esp + 0x38], eax
shl esi, 2
push esi
push 0
push dword [esp + 0x38]
call fcn.004ef3a0
mov eax, dword [esp + 0x44]
add esp, 0xc
mov esi, dword [esp + 0x10]
test eax, eax
je 0x4a121f
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x40], eax
lea eax, [esp + 0x34]
push eax
push esi
mov dword [esp + 0x3c], 0
call dword [sym.imp.gdiplus.dll_GdipCreateFromHDC]
mov edi, dword [esp + 0x34]
push 3
push edi
mov dword [esp + 0x44], edi
call dword [sym.imp.gdiplus.dll_GdipSetSmoothingMode]
lea eax, [esp + 0x24]
mov dword [esp + 0x24], 0
push eax
push 0
push ecx
mov dword [esp], 0x3f800000
push 0xff000000
call dword [sym.imp.gdiplus.dll_GdipCreatePen1]
push 0
push dword [esp + 0x28]
mov dword [esp + 0x30], eax
call dword [sym.imp.gdiplus.dll_GdipSetPenMode]
mov ecx, dword [esp + 0x28]
test eax, eax
cmovne ecx, eax
mov dword [esp + 0x28], ecx
mov ecx, ebx
call fcn.004a1260
test al, al
jne 0x4a1094
cmp byte [ebx + 0x54], al
je 0x4a1094
movzx ecx, byte [ebx + 0x53]
lea eax, [esp + 0x14]
push eax
movzx eax, byte [ebx + 0x50]
shl ecx, 8
or ecx, eax
mov dword [esp + 0x18], 0
movzx eax, byte [ebx + 0x51]
shl ecx, 8
or ecx, eax
movzx eax, byte [ebx + 0x52]
shl ecx, 8
or ecx, eax
push ecx
call dword [sym.imp.gdiplus.dll_GdipCreateSolidFill]
mov eax, dword [ebx + 0x28]
sub eax, dword [ebx + 0x20]
mov esi, dword [esp + 0x14]
push eax
mov eax, dword [ebx + 0x24]
sub eax, dword [ebx + 0x1c]
push eax
push 0
push 0
push esi
push edi
call dword [sym.imp.gdiplus.dll_GdipFillRectangleI]
push esi
call dword [sym.imp.gdiplus.dll_GdipDeleteBrush]
mov esi, dword [esp + 0x10]
mov eax, dword [ebx + 0x5c]
test eax, eax
je 0x4a11c6
cmp dword [eax + 4], 0
je 0x4a11c6
cmp byte [ebx + 0x54], 0
xorps xmm0, xmm0
mov ecx, dword [sym.imp.gdiplus.dll_GdipGetImageHeight]
movdqu xmmword [esp + 0x5c], xmm0
je 0x4a1138
mov edi, dword [eax + 4]
test edi, edi
je 0x4a10e8
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0
push eax
push dword [edi + 4]
call ecx
test eax, eax
je 0x4a10de
mov dword [edi + 8], eax
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x18], ecx
jmp 0x4a10f0
mov dword [esp + 0x18], 0
mov eax, dword [ebx + 0x5c]
mov edi, dword [eax + 4]
test edi, edi
je 0x4a111d
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0
push eax
push dword [edi + 4]
call dword [sym.imp.gdiplus.dll_GdipGetImageWidth]
test eax, eax
je 0x4a1117
mov dword [edi + 8], eax
mov ecx, dword [esp + 0x10]
jmp 0x4a111f
xor ecx, ecx
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x5c]
push 0
push eax
call fcn.004e7a90
mov ecx, dword [sym.imp.gdiplus.dll_GdipGetImageHeight]
add esp, 8
mov eax, dword [ebx + 0x5c]
mov edi, dword [eax + 4]
test edi, edi
je 0x4a1165
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0
push eax
push dword [edi + 4]
call ecx
test eax, eax
je 0x4a115b
mov dword [edi + 8], eax
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x10], ecx
jmp 0x4a116d
mov dword [esp + 0x10], 0
mov eax, dword [ebx + 0x5c]
mov edi, dword [eax + 4]
test edi, edi
je 0x4a119a
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0
push eax
push dword [edi + 4]
call dword [sym.imp.gdiplus.dll_GdipGetImageWidth]
test eax, eax
je 0x4a1194
mov dword [edi + 8], eax
mov ecx, dword [esp + 0x14]
jmp 0x4a119c
xor ecx, ecx
mov eax, dword [ebx + 0x5c]
mov eax, dword [eax + 4]
test eax, eax
je 0x4a11ab
mov eax, dword [eax + 4]
jmp 0x4a11ad
xor eax, eax
push dword [esp + 0x10]
mov edi, dword [esp + 0x40]
push ecx
push dword [esp + 0x68]
push dword [esp + 0x68]
push eax
push edi
call dword [sym.imp.gdiplus.dll_GdipDrawImageRectI]
mov ebx, dword [esp + 0x2c]
lea eax, [esp + 0x1c]
push 2
push eax
push 0
lea eax, [esp + 0x50]
push eax
push esi
lea eax, [esp + 0x68]
push eax
lea eax, [esp + 0x64]
push eax
push dword [esp + 0x3c]
push ebx
call dword [sym.imp.USER32.dll_UpdateLayeredWindow]
push esi
push edi
call dword [sym.imp.gdiplus.dll_GdipReleaseDC]
push dword [esp + 0x40]
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [esp + 0x38]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
push dword [esp + 0x24]
call dword [sym.imp.gdiplus.dll_GdipDeletePen]
push edi
call dword [sym.imp.gdiplus.dll_GdipDeleteGraphics]
jmp 0x4a1223
mov ebx, dword [esp + 0x2c]
push esi
mov esi, dword [sym.imp.GDI32.dll_DeleteDC]
call esi
push dword [esp + 0x20]
call esi
push 0
push ebx
call dword [sym.imp.USER32.dll_ValidateRect]
mov ecx, dword [esp + 0xa4]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004e94b7
mov esp, ebp
pop ebp
ret 8