Function at 0x40f780
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x43ef88
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x44db90]
xor eax, esp
mov dword [esp + 0x74], eax
push ebx
push edi
mov eax, dword [0x44db90]
xor eax, esp
push eax
lea eax, [esp + 0x88]
mov dword fs:[0], eax
mov eax, dword [esi + 0x30]
push eax
call dword [sym.imp.USER32.dll_GetDC]
push eax
mov dword [esp + 0x18], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov edi, eax
xor eax, eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov eax, dword [esi + 0x28]
mov dword [esp + 0x48], eax
mov ecx, 0x20
mov word [esp + 0x52], cx
mov ecx, dword [esi + 0x2c]
imul eax, ecx
xor ebx, ebx
shl eax, 5
mov edx, 1
mov word [esp + 0x50], dx
cdq
push ebx
and edx, 7
push ebx
add eax, edx
sar eax, 3
push ebx
mov dword [esp + 0x64], eax
push ebx
lea eax, [esp + 0x54]
mov dword [esp + 0x5c], ecx
mov ecx, dword [esp + 0x24]
push eax
push ecx
mov dword [esp + 0x5c], 0x28
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], ebx
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x80], ebx
call dword [sym.imp.GDI32.dll_CreateDIBSection]
push eax
push edi
mov dword [esp + 0x2c], eax
call dword [sym.imp.GDI32.dll_SelectObject]
lea edx, [esp + 0x70]
mov dword [esp + 0x28], eax
mov eax, dword [esi + 0x30]
push edx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0x74]
lea eax, [esp + 0x18]
push eax
push edi
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], edx
mov dword [esp + 0x20], ebx
call dword [sym.imp.gdiplus.dll_GdipCreateFromHDC]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x90], ebx
mov ecx, dword [esi + 0x2c]
mov edx, dword [esi + 0xc]
push ecx
mov ecx, dword [esi + 0x28]
push ecx
mov ecx, dword [edx + 4]
push ebx
push ebx
push ecx
push eax
call dword [sym.imp.gdiplus.dll_GdipFillRectangleI]
cmp eax, ebx
je 0x40f8d6
mov dword [esp + 0x20], eax
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
sub ecx, eax
xor edx, edx
sar ecx, 2
mov dword [esp + 0x10], edx
test ecx, ecx
je 0x40f91d
jmp 0x40f8f0
mov eax, dword [eax + edx*4]
cmp eax, ebx
je 0x40f909
mov edx, dword [eax]
mov edx, dword [edx + 8]
lea ecx, [esp + 0x1c]
push ecx
mov ecx, eax
call edx
mov edx, dword [esp + 0x10]
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
sub ecx, eax
inc edx
sar ecx, 2
mov dword [esp + 0x10], edx
cmp edx, ecx
jb 0x40f8f0
mov edx, dword [esi + 0x28]
mov eax, dword [esi + 0x2c]
mov cl, byte [ebp + 8]
push 2
mov dword [esp + 0x30], edx
lea edx, [esp + 0x10]
push edx
push ebx
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x48]
push eax
mov eax, dword [esi + 0x30]
push edi
mov byte [esp + 0x22], cl
lea ecx, [esp + 0x40]
push ecx
lea edx, [esp + 0x4c]
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
mov word [esp + 0x24], bx
mov ebx, dword [esp + 0x2c]
push edx
push ebx
push eax
mov byte [esp + 0x33], 1
call dword [sym.imp.USER32.dll_UpdateLayeredWindow]
mov ecx, dword [esp + 0x28]
push ecx
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [esp + 0x24]
push edx
call dword [sym.imp.GDI32.dll_DeleteObject]
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
mov eax, dword [esi + 0x30]
push ebx
push eax
call dword [sym.imp.USER32.dll_ReleaseDC]
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.gdiplus.dll_GdipDeleteGraphics]
mov ecx, dword [esp + 0x88]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [esp + 0x74]
xor ecx, esp
call fcn.00428a4d
mov esp, ebp
pop ebp
ret 4