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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
push 0xffffffffffffffff
push 0x5b990e
mov eax, dword fs:[0]
push eax
sub esp, 0xbc
mov eax, dword [0x628960]
xor eax, esp
mov dword [esp + 0xb4], eax
push esi
push edi
mov eax, dword [0x628960]
xor eax, esp
push eax
lea eax, [esp + 0xc8]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0x18], edi
lea eax, [esp + 0x24]
xorps xmm0, xmm0
push eax
push dword [edi + 0x20]
movdqa xmmword [esp + 0x2c], xmm0
call dword [sym.imp.USER32.dll_GetClientRect]
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_GetDC]
push eax
call fcn.00499915
mov esi, eax
lea ecx, [esp + 0x44]
xorps xmm0, xmm0
mov dword [esp + 0x1c], esi
movdqa xmmword [esp + 0x44], xmm0
call fcn.004995f2
mov dword [esp + 0xd0], 0
test esi, esi
jne 0x485196
xor eax, eax
jmp 0x485199
mov eax, dword [esi + 4]
mov esi, dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
call esi
push eax
lea ecx, [esp + 0x48]
call fcn.00499745
mov eax, dword [esp + 0x2c]
xorps xmm0, xmm0
sub eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
sub ecx, dword [esp + 0x28]
push 0
movdqu xmmword [esp + 0x9c], xmm0
push 0
mov dword [esp + 0xa0], eax
lea eax, [esp + 0x28]
push eax
push 1
lea eax, [esp + 0xa4]
movq qword [esp + 0xc8], xmm0
push eax
movdqu xmmword [esp + 0xbc], xmm0
push 0
mov dword [esp + 0x38], 0
mov dword [esp + 0xac], 0x28
mov dword [esp + 0xb8], 0x200001
mov dword [esp + 0xbc], 0
mov dword [esp + 0xb4], ecx
mov dword [esp + 0xcc], 0x100
call dword [sym.imp.GDI32.dll_CreateDIBSection]
test eax, eax
je 0x4856d2
push eax
call fcn.00499927
mov dword [esp + 0x10], eax
test eax, eax
jne 0x485251
xor ecx, ecx
jmp 0x485254
mov ecx, dword [eax + 4]
push ecx
push dword [esp + 0x4c]
call fcn.00499bbe
push 1
lea ecx, [esp + 0x48]
mov dword [esp + 0x18], eax
call fcn.00499c9f
cmp dword [edi + 0x80], 0
je 0x4852dc
lea eax, [esp + 0x20]
mov dword [esp + 0x20], 0
push eax
push dword [esp + 0x4c]
xorps xmm0, xmm0
movq qword [esp + 0x64], xmm0
call dword [sym.imp.gdiplus.dll_GdipCreateFromHDC]
mov edx, dword [edi + 0x80]
push 8
push 8
push 8
push 8
push dword [edi + 0x88]
mov dword [esp + 0x74], eax
push dword [edi + 0x84]
mov eax, dword [esp + 0x38]
push ecx
mov dword [esp + 0x78], eax
lea ecx, [esp + 0x78]
lea eax, [esp + 0x40]
push 0
push eax
call fcn.0047f4f0
add esp, 0x24
push dword [esp + 0x5c]
call dword [sym.imp.gdiplus.dll_GdipDeleteGraphics]
jmp 0x485334
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x28]
sub eax, edx
mov ecx, dword [esp + 0x24]
push 0xd19300
push eax
mov eax, dword [esp + 0x34]
sub eax, ecx
push eax
push edx
push ecx
lea ecx, [esp + 0x58]
call fcn.0049e8dc
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x28]
sub eax, edx
mov ecx, dword [esp + 0x24]
sub eax, 2
push 0xffffff
push eax
mov eax, dword [esp + 0x34]
sub eax, ecx
sub eax, 2
push eax
lea eax, [edx + 1]
push eax
lea eax, [ecx + 1]
push eax
lea ecx, [esp + 0x58]
call fcn.0049e8dc
xorps xmm0, xmm0
lea ecx, [esp + 0x64]
movdqa xmmword [esp + 0x64], xmm0
call fcn.004995f2
mov byte [esp + 0xd0], 1
push dword [esp + 0x48]
call esi
push eax
lea ecx, [esp + 0x68]
call fcn.00499745
push 1
lea ecx, [esp + 0x68]
call fcn.00499c9f
xorps xmm0, xmm0
movq qword [esp + 0x3c], xmm0
mov dword [esp + 0x40], 0
mov dword [esp + 0x3c], vtable.CBitmap.0
mov byte [esp + 0xd0], 2
mov ecx, dword [esp + 0x30]
sub ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
sub eax, dword [esp + 0x24]
push ecx
push eax
push dword [esp + 0x50]
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
lea ecx, [esp + 0x40]
call fcn.0049977b
push dword [esp + 0x40]
push dword [esp + 0x6c]
call fcn.00499bbe
mov ecx, dword [esp + 0x30]
sub ecx, dword [esp + 0x28]
push 0xffffff
push ecx
mov ecx, dword [esp + 0x34]
sub ecx, dword [esp + 0x2c]
push ecx
push 0
push 0
lea ecx, [esp + 0x78]
mov dword [esp + 0x70], eax
call fcn.0049e8dc
movdqu xmm0, xmmword [esp + 0x24]
mov edx, dword [edi]
sub esp, 0x10
mov eax, esp
mov ecx, edi
movdqu xmmword [eax], xmm0
lea eax, [esp + 0x74]
push eax
call dword [edx + 0x160]
push 0
push 0
push dword [esp + 0x48]
call dword [sym.imp.GDI32.dll_GetBitmapBits]
push eax
mov dword [esp + 0x10], eax
call fcn.0048b2b1
add esp, 4
mov esi, eax
push esi
push dword [esp + 0x10]
push dword [esp + 0x48]
call dword [sym.imp.GDI32.dll_GetBitmapBits]
mov eax, dword [esp + 0xc]
xor ecx, ecx
cmp eax, 3
jbe 0x48548c
mov edx, 3
sub edx, esi
mov al, byte [ecx + esi]
cmp al, 0xff
jne 0x485461
cmp byte [ecx + esi + 1], al
jne 0x485461
cmp byte [ecx + esi + 2], al
jne 0x485461
mov word [ecx + esi], 0
mov byte [ecx + esi + 2], 0
jmp 0x48547a
test al, al
jne 0x485475
cmp byte [ecx + esi + 1], al
jne 0x485475
cmp byte [ecx + esi + 2], al
jne 0x485475
mov byte [ecx + esi], 1
mov byte [ecx + esi + 3], 0xff
add ecx, 4
lea eax, [edx + ecx]
add eax, esi
cmp eax, dword [esp + 0xc]
jb 0x485441
mov eax, dword [esp + 0xc]
push esi
push eax
push dword [esp + 0x48]
call dword [sym.imp.GDI32.dll_SetBitmapBits]
push esi
call fcn.0048b2ba
mov ecx, dword [esp + 0x34]
add esp, 4
sub ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
sub eax, dword [esp + 0x24]
mov dword [esp + 0xc], 0x1ff0000
push dword [esp + 0xc]
push ecx
push eax
push 0
push 0
push dword [esp + 0x7c]
push ecx
push eax
push 0
push 0
push dword [esp + 0x70]
call dword [sym.imp.MSIMG32.dll_AlphaBlend]
mov eax, dword [esp + 0x5c]
test eax, eax
je 0x4854e2
mov eax, dword [eax + 4]
push eax
push dword [esp + 0x6c]
call fcn.00499bbe
lea ecx, [esp + 0x3c]
call fcn.00499833
lea ecx, [esp + 0x64]
call fcn.0049981d
movdqu xmm0, xmmword [esp + 0x24]
mov edx, dword [edi]
sub esp, 0x10
mov eax, esp
mov ecx, edi
movdqu xmmword [eax], xmm0
lea eax, [esp + 0x54]
push eax
call dword [edx + 0x164]
mov eax, dword [esp + 0x10]
push 0
push 0
push dword [eax + 4]
call dword [sym.imp.GDI32.dll_GetBitmapBits]
push eax
mov dword [esp + 0x10], eax
call fcn.0048b2b1
add esp, 4
mov esi, eax
mov eax, dword [esp + 0x10]
push esi
push dword [esp + 0x10]
push dword [eax + 4]
call dword [sym.imp.GDI32.dll_GetBitmapBits]
mov eax, dword [esp + 0xc]
xor edx, edx
cmp eax, 3
jbe 0x48558f
mov edi, 3
mov ecx, esi
sub edi, esi
cmp byte [ecx], 0
jne 0x485578
cmp byte [edx + esi + 1], 0
jne 0x485578
cmp byte [edx + esi + 2], 0
jne 0x485578
mov byte [ecx], 1
add ecx, 4
add edx, 4
lea eax, [edi + ecx]
cmp eax, dword [esp + 0xc]
jb 0x485562
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0xc]
push esi
push eax
mov eax, dword [esp + 0x18]
push dword [eax + 4]
call dword [sym.imp.GDI32.dll_SetBitmapBits]
push esi
call fcn.0048b2ba
add esp, 4
lea eax, [esp + 0x24]
mov ecx, edi
push eax
call fcn.004997a7
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
sub eax, ecx
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x30]
push 0xffffffffffffffec
push dword [edi + 0x20]
sub eax, edx
mov dword [esp + 0x40], 0
mov dword [esp + 0x94], ecx
mov dword [esp + 0x98], edx
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], 0
mov dword [esp + 0x90], eax
mov dword [esp + 0x40], 0x1ff0000
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x80000
jne 0x48562c
or eax, 0x80000
push eax
push 0xffffffffffffffec
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov esi, dword [esp + 0x1c]
xor eax, eax
cmp dword [edi + 0x80], eax
setne al
inc eax
test esi, esi
jne 0x485644
xor ecx, ecx
jmp 0x485647
mov ecx, dword [esi + 4]
push eax
lea eax, [esp + 0x3c]
push eax
push 0
lea eax, [esp + 0x88]
push eax
push dword [esp + 0x58]
lea eax, [esp + 0x98]
push eax
lea eax, [esp + 0xa4]
push eax
push ecx
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_UpdateLayeredWindow]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x485680
mov eax, dword [eax + 4]
push eax
push dword [esp + 0x4c]
call fcn.00499bbe
mov ecx, dword [esp + 0x10]
call fcn.00499833
lea ecx, [esp + 0x44]
call fcn.0049981d
push dword [esi + 4]
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_ReleaseDC]
mov byte [esp + 0xd0], 1
lea ecx, [esp + 0x3c]
mov dword [esp + 0x3c], vtable.CBitmap.0
call fcn.004744c0
lea ecx, [esp + 0x64]
mov byte [esp + 0xd0], 0
call fcn.0049965a
lea ecx, [esp + 0x44]
mov dword [esp + 0xd0], 0xffffffff
call fcn.0049965a
mov ecx, dword [esp + 0xc8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0xb4]
xor ecx, esp
call fcn.004a0676
mov esp, ebp
pop ebp
ret