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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x44c5b8
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x45e200]
xor eax, esp
mov dword [esp + 0x78], eax
push ebx
push esi
push edi
mov eax, dword [0x45e200]
xor eax, esp
push eax
lea eax, [esp + 0x90]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi + 0xc]
lea ecx, [esp + 0x2c]
push ecx
xor esi, esi
push eax
mov dword [esp + 0x40], edi
mov dword [esp + 0x34], esi
call sub.gdiplus.dll_GdipCreateFromHDC
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x1c], eax
push 0xfe000000
push eax
mov dword [esp + 0xa0], esi
call sub.gdiplus.dll_GdipGraphicsClear
cmp eax, esi
je 0x40e5ad
mov dword [esp + 0x20], eax
mov edx, dword [edi + 0x10c]
cmp edx, esi
je 0x40e5e5
cmp dword [edi + 0xcc], esi
jne 0x40e5e5
mov eax, dword [edi + 0x9c]
mov ecx, dword [edi + 0x98]
mov edx, dword [edx + 4]
push eax
mov eax, dword [esp + 0x20]
push ecx
push esi
push esi
push edx
push eax
call sub.gdiplus.dll_GdipFillRectangleI
cmp eax, esi
je 0x40e5e5
mov dword [esp + 0x20], eax
mov ecx, dword [edi + 0x9c]
mov edx, dword [edi + 0x98]
push ecx
push edx
push esi
push esi
lea esi, [edi + 0x54]
lea ebx, [esp + 0x2c]
call fcn.004115a0
mov eax, dword [edi + 0x128]
sub eax, dword [edi + 0x124]
xor ebx, ebx
sar eax, 2
test eax, eax
jbe 0x40e67a
jmp 0x40e620
mov ecx, dword [edi + 0x128]
sub ecx, dword [edi + 0x124]
sar ecx, 2
cmp ebx, ecx
jb 0x40e638
call fcn.00432beb
mov edx, dword [edi + 0x124]
mov esi, dword [edx + ebx*4]
test esi, esi
je 0x40e666
mov eax, dword [esi]
mov edx, dword [eax + 0x84]
mov ecx, esi
call edx
test eax, eax
jne 0x40e666
mov eax, dword [esi]
mov edx, dword [eax + 0x80]
lea ecx, [esp + 0x1c]
push ecx
mov ecx, esi
call edx
mov eax, dword [edi + 0x128]
sub eax, dword [edi + 0x124]
inc ebx
sar eax, 2
cmp ebx, eax
jb 0x40e620
mov ecx, dword [edi + 0x140]
sub ecx, dword [edi + 0x13c]
xor ebx, ebx
sar ecx, 2
mov dword [esp + 0x14], ebx
test ecx, ecx
jbe 0x40e6f0
jmp 0x40e6a0
mov edx, dword [edi + 0x140]
sub edx, dword [edi + 0x13c]
sar edx, 2
cmp ebx, edx
jb 0x40e6b8
call fcn.00432beb
mov eax, dword [edi + 0x13c]
mov esi, dword [eax + ebx*4]
test esi, esi
je 0x40e6d8
cmp dword [esi + 4], 0
je 0x40e6d8
lea ebx, [esp + 0x1c]
call fcn.004190d0
mov ebx, dword [esp + 0x14]
mov ecx, dword [edi + 0x140]
sub ecx, dword [edi + 0x13c]
inc ebx
sar ecx, 2
mov dword [esp + 0x14], ebx
cmp ebx, ecx
jb 0x40e6a0
mov edx, dword [edi + 0x128]
sub edx, dword [edi + 0x124]
xor ebx, ebx
sar edx, 2
test edx, edx
jbe 0x40e76a
jmp 0x40e710
mov eax, dword [edi + 0x128]
sub eax, dword [edi + 0x124]
sar eax, 2
cmp ebx, eax
jb 0x40e728
call fcn.00432beb
mov ecx, dword [edi + 0x124]
mov esi, dword [ecx + ebx*4]
test esi, esi
je 0x40e756
mov edx, dword [esi]
mov eax, dword [edx + 0x84]
mov ecx, esi
call eax
test eax, eax
je 0x40e756
mov edx, dword [esi]
mov edx, dword [edx + 0x80]
lea eax, [esp + 0x1c]
push eax
mov ecx, esi
call edx
mov eax, dword [edi + 0x128]
sub eax, dword [edi + 0x124]
inc ebx
sar eax, 2
cmp ebx, eax
jb 0x40e710
xor ebx, ebx
cmp dword [edi + 0xcc], ebx
je 0x40e833
mov edx, dword [edi + 4]
lea ecx, [esp + 0x78]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [edi + 4]
lea eax, [esp + 0x40]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [0x662448]
mov byte [esp + 0x14], bl
mov byte [esp + 0x15], bl
mov byte [esp + 0x16], 0xff
mov byte [esp + 0x17], 1
cmp eax, ebx
jne 0x40e7c9
push str.User32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x662448], eax
cmp eax, ebx
je 0x40ecd4
push str.UpdateLayeredWindow
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x40ecd4
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x24], edx
mov edx, dword [edi + 0x98]
push 2
mov dword [esp + 0x34], edx
mov dword [esp + 0x2c], ecx
mov ecx, dword [edi + 0x9c]
lea edx, [esp + 0x18]
push edx
mov edx, dword [edi + 0xc]
push ebx
mov dword [esp + 0x40], ecx
lea ecx, [esp + 0x44]
push ecx
push edx
lea ecx, [esp + 0x44]
push ecx
mov ecx, dword [edi + 8]
lea edx, [esp + 0x3c]
push edx
mov edx, dword [edi + 4]
push ecx
push edx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], ebx
call eax
jmp 0x40ecd4
mov eax, dword [edi + 0x158]
sub eax, dword [edi + 0x154]
sar eax, 2
test eax, eax
jbe 0x40eb1d
lea ebx, [ebx]
mov ecx, dword [edi + 0x158]
sub ecx, dword [edi + 0x154]
sar ecx, 2
cmp ebx, ecx
jb 0x40e868
call fcn.00432beb
mov edx, dword [edi + 0x154]
mov eax, dword [edx + ebx*4]
cmp dword [eax + 4], 1
lea esi, [ebx*4]
jne 0x40e98d
mov ecx, dword [edi + 0x158]
sub ecx, edx
sar ecx, 2
cmp ebx, ecx
jb 0x40e896
call fcn.00432beb
mov edx, dword [edi + 0x154]
mov eax, dword [esi + edx]
cmp dword [eax], 0
jne 0x40eb05
mov ecx, dword [edi + 0x158]
sub ecx, edx
sar ecx, 2
cmp ebx, ecx
jb 0x40e8bc
call fcn.00432beb
mov edx, dword [edi + 0x158]
sub edx, dword [edi + 0x154]
mov eax, dword [edi + 0x154]
add eax, esi
sar edx, 2
mov dword [esp + 0x24], eax
cmp ebx, edx
jb 0x40e8e0
call fcn.00432beb
mov eax, dword [edi + 0x158]
sub eax, dword [edi + 0x154]
mov ecx, dword [edi + 0x154]
add ecx, esi
sar eax, 2
mov dword [esp + 0x14], ecx
cmp ebx, eax
jb 0x40e908
call fcn.00432beb
mov ecx, dword [esp + 0x14]
mov edx, dword [edi + 0x158]
sub edx, dword [edi + 0x154]
mov eax, dword [edi + 0x154]
add eax, esi
sar edx, 2
mov dword [esp + 0x18], eax
cmp ebx, edx
jb 0x40e934
call fcn.00432beb
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x24]
mov edx, dword [edx]
mov edx, dword [edx + 0x14]
mov ecx, dword [ecx]
mov eax, dword [eax]
push edx
mov edx, dword [ecx + 0x10]
mov ecx, dword [eax + 0xc]
push edx
mov edx, dword [edi + 0x154]
mov eax, dword [edx + esi]
mov edx, dword [edi + 8]
push ecx
mov ecx, dword [eax + 8]
push ecx
push edx
call dword [sym.imp.GDI32.dll_ExcludeClipRect]
mov eax, dword [edi + 0x158]
sub eax, dword [edi + 0x154]
sar eax, 2
cmp ebx, eax
jb 0x40e979
call fcn.00432beb
mov ecx, dword [edi + 0x154]
mov edx, dword [esi + ecx]
mov dword [edx], 1
jmp 0x40eb05
mov eax, dword [edi + 0x158]
sub eax, dword [edi + 0x154]
sar eax, 2
cmp ebx, eax
jb 0x40e9a5
call fcn.00432beb
mov ecx, dword [edi + 0x154]
mov edx, dword [esi + ecx]
cmp dword [edx + 4], 0
jne 0x40eb05
mov eax, dword [edi + 0x158]
sub eax, ecx
sar eax, 2
cmp ebx, eax
jb 0x40e9cc
call fcn.00432beb
mov ecx, dword [edi + 0x154]
mov edx, dword [esi + ecx]
cmp dword [edx], 1
jne 0x40eb05
mov eax, dword [edi + 0x158]
sub eax, ecx
sar eax, 2
cmp ebx, eax
jb 0x40e9f2
call fcn.00432beb
mov ecx, dword [edi + 0x158]
sub ecx, dword [edi + 0x154]
mov eax, dword [edi + 0x154]
add eax, esi
sar ecx, 2
mov dword [esp + 0x18], eax
cmp ebx, ecx
jb 0x40ea16
call fcn.00432beb
mov edx, dword [edi + 0x158]
sub edx, dword [edi + 0x154]
mov eax, dword [edi + 0x154]
add eax, esi
sar edx, 2
mov dword [esp + 0x14], eax
cmp ebx, edx
jb 0x40ea3a
call fcn.00432beb
mov eax, dword [edi + 0x158]
sub eax, dword [edi + 0x154]
mov ecx, dword [edi + 0x154]
add ecx, esi
sar eax, 2
mov dword [esp + 0x24], ecx
cmp ebx, eax
jb 0x40ea62
call fcn.00432beb
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x18]
mov edx, dword [edx]
mov edx, dword [edx + 0x14]
mov eax, dword [edi + 0x154]
mov ecx, dword [ecx]
push edx
mov edx, dword [esp + 0x18]
mov edx, dword [edx]
mov edx, dword [edx + 0x10]
push edx
mov edx, dword [ecx + 0xc]
add eax, esi
mov eax, dword [eax]
mov ecx, dword [eax + 8]
push edx
push ecx
call dword [sym.imp.GDI32.dll_CreateRectRgn]
mov edx, dword [edi + 8]
push 2
push eax
push edx
call dword [sym.imp.GDI32.dll_ExtSelectClipRgn]
mov eax, dword [edi + 0x158]
sub eax, dword [edi + 0x154]
sar eax, 2
cmp ebx, eax
jb 0x40eab5
call fcn.00432beb
mov eax, dword [edi + 0x154]
add eax, esi
push 5
mov dword [esp + 0x28], eax
call dword [sym.imp.GDI32.dll_GetStockObject]
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx]
push eax
mov eax, dword [edi + 8]
add edx, 8
push edx
push eax
call dword [sym.imp.USER32.dll_FillRect]
mov ecx, dword [edi + 0x158]
sub ecx, dword [edi + 0x154]
sar ecx, 2
cmp ebx, ecx
jb 0x40eaf6
call fcn.00432beb
mov edx, dword [edi + 0x154]
mov eax, dword [esi + edx]
mov dword [eax], 0
mov ecx, dword [edi + 0x158]
sub ecx, dword [edi + 0x154]
inc ebx
sar ecx, 2
cmp ebx, ecx
jb 0x40e850
xor esi, esi
push esi
call dword [sym.imp.USER32.dll_GetDC]
mov edx, dword [edi + 0xc]
push edx
mov dword [esp + 0x18], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov edx, dword [edi + 0x9c]
xor ecx, ecx
mov ebx, eax
mov eax, dword [edi + 0x98]
mov dword [esp + 0x54], ecx
mov dword [esp + 0x54], eax
shl eax, 5
add eax, 0x1f
sar eax, 3
and eax, 0xfffffffc
imul eax, edx
push esi
mov dword [esp + 0x5c], ecx
push esi
mov dword [esp + 0x60], edx
mov dword [esp + 0x64], ecx
mov dword [esp + 0x6c], ecx
lea edx, [esp + 0x38]
push edx
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x74], ecx
mov dword [esp + 0x78], ecx
mov dword [esp + 0x80], ecx
mov dword [esp + 0x70], eax
push esi
mov ecx, 1
lea eax, [esp + 0x60]
mov word [esp + 0x6c], cx
push eax
mov ecx, 0x20
push esi
mov dword [esp + 0x68], 0x28
mov word [esp + 0x76], cx
mov dword [esp + 0x78], esi
mov dword [esp + 0x88], esi
mov dword [esp + 0x48], esi
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov dword [esp + 0x18], eax
cmp eax, esi
je 0x40ec58
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [edi + 4]
push 5
push ecx
mov dword [esp + 0x2c], eax
call dword [sym.imp.USER32.dll_GetWindow]
mov esi, eax
test esi, esi
je 0x40ec33
nop
push esi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x40ec24
lea edx, [esp + 0x1c]
push edx
push edi
mov eax, esi
mov ecx, ebx
call fcn.0040e270
lea eax, [esp + 0x78]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowRect]
push 1
lea ecx, [esp + 0x7c]
push ecx
push esi
call dword [sym.imp.USER32.dll_InvalidateRect]
push 2
push esi
call dword [sym.imp.USER32.dll_GetWindow]
mov esi, eax
test esi, esi
jne 0x40ebf0
push edi
lea edi, [esp + 0x20]
call fcn.0040e360
mov edx, dword [esp + 0x24]
push edx
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov edi, dword [esp + 0x38]
push ebx
call dword [sym.imp.GDI32.dll_DeleteDC]
mov ecx, dword [esp + 0x14]
mov edx, dword [edi + 4]
push ecx
push edx
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [edi + 0xc]
mov ecx, dword [edi + 0x9c]
mov edx, dword [edi + 0x98]
push 0xcc0020
push 0
push 0
push eax
mov eax, dword [edi + 8]
push ecx
push edx
push 0
push 0
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
mov edx, dword [edi + 4]
lea ecx, [esp + 0x40]
xor eax, eax
push ecx
push edx
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
call dword [sym.imp.USER32.dll_GetClientRect]
push 5
call dword [sym.imp.GDI32.dll_GetStockObject]
mov ecx, dword [edi + 8]
push eax
lea eax, [esp + 0x44]
push eax
push ecx
call dword [sym.imp.USER32.dll_FillRect]
mov edx, dword [esp + 0x1c]
push edx
call sub.gdiplus.dll_GdipDeleteGraphics
mov ecx, dword [esp + 0x90]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.0043270e
mov esp, ebp
pop ebp
ret