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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x84
mov eax, dword [0x47201c]
xor eax, esp
mov dword [esp + 0x80], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, ecx
mov esi, dword [edi + 0x2c]
mov ebx, dword [edi + 0x40]
mov ecx, dword [edi + 0x24]
mov dword [esp + 0x30], edi
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ecx
test esi, esi
je 0x407a55
mov dword [esp + 0x10], esi
jmp 0x407a5e
mov edx, dword [edi + 0x28]
mov dword [esp + 0x10], edx
mov esi, edx
cmp dword [edi + 0x50], 0
jne 0x407add
lea eax, [esp + 0x54]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetClientRect]
test esi, esi
je 0x407e68
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x407ab7
push ebx
call dword [sym.imp.USER32.dll_GetDC]
lea ecx, [esp + 0x54]
push ecx
mov edi, eax
push edi
push 1
push esi
call dword [sym.imp.ole32.dll_OleDraw]
push edi
push ebx
call dword [sym.imp.USER32.dll_ReleaseDC]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x80]
xor ecx, esp
call fcn.0044eeef
mov esp, ebp
pop ebp
ret 0xc
lea edx, [esp + 0x54]
push edx
push eax
push 1
push esi
call dword [sym.imp.ole32.dll_OleDraw]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x80]
xor ecx, esp
call fcn.0044eeef
mov esp, ebp
pop ebp
ret 0xc
lea eax, [esp + 0x44]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowRect]
cmp dword [edi + 0x5c], 0
je 0x407b06
lea ecx, [edi + 0x64]
push ecx
lea edx, [esp + 0x48]
push edx
call dword [sym.imp.USER32.dll_EqualRect]
test eax, eax
jne 0x407c48
mov eax, dword [edi + 0x5c]
test eax, eax
je 0x407b14
push eax
call dword [sym.imp.GDI32.dll_DeleteDC]
mov eax, dword [edi + 0x60]
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
test eax, eax
je 0x407b24
push eax
call esi
mov eax, dword [edi + 0x7c]
test eax, eax
je 0x407b32
push eax
call dword [sym.imp.GDI32.dll_DeleteDC]
mov eax, dword [edi + 0x80]
test eax, eax
je 0x407b3f
push eax
call esi
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x4c]
mov dword [edi + 0x64], eax
mov eax, dword [esp + 0x50]
mov dword [edi + 0x68], ecx
mov dword [edi + 0x6c], edx
push ebx
mov dword [edi + 0x70], eax
call dword [sym.imp.USER32.dll_GetDC]
mov ecx, dword [esp + 0x48]
sub ecx, dword [esp + 0x50]
mov esi, eax
xor eax, eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], eax
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x4c]
sub eax, dword [esp + 0x44]
push esi
mov dword [esp + 0x68], 0x28
mov dword [esp + 0x74], 0x200001
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], ecx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push 0
push 0
lea edx, [edi + 0x74]
push edx
mov dword [edi + 0x5c], eax
push 0
lea eax, [esp + 0x74]
push eax
push esi
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov ecx, dword [edi + 0x5c]
push eax
push ecx
mov dword [edi + 0x60], eax
call dword [sym.imp.GDI32.dll_SelectObject]
cmp dword [edi + 0x54], 0
je 0x407c27
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push 0
push 0
lea edx, [edi + 0x84]
push edx
mov dword [edi + 0x7c], eax
push 0
lea eax, [esp + 0x74]
push eax
push esi
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov ecx, dword [edi + 0x7c]
push eax
push ecx
mov dword [edi + 0x80], eax
call dword [sym.imp.GDI32.dll_SelectObject]
push esi
push ebx
call dword [sym.imp.USER32.dll_ReleaseDC]
cmp dword [edi + 0x78], 0
jne 0x407c44
mov edx, dword [edi + 0x5c]
push 0xc
push edx
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov dword [edi + 0x78], eax
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x48]
xor edx, edx
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], edx
mov edx, dword [esp + 0x4c]
sub edx, eax
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x50]
sub eax, ecx
cmp dword [esp + 0x2c], 0
mov dword [esp + 0x38], ecx
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], eax
je 0x407e2f
test esi, esi
je 0x407e2f
lea ecx, [esp + 0x54]
push ecx
push ebx
call dword [sym.imp.USER32.dll_GetClientRect]
cmp dword [edi + 0x78], 0x20
jne 0x407de4
cmp dword [edi + 0x54], 0
jne 0x407ccf
mov edx, dword [esp + 0x1c]
imul edx, dword [esp + 0x18]
mov eax, dword [edi + 0x74]
add edx, edx
add edx, edx
push edx
push 0
push eax
call fcn.00454970
mov edx, dword [edi + 0x5c]
add esp, 0xc
lea ecx, [esp + 0x54]
push ecx
push edx
jmp 0x407e26
mov eax, dword [esp + 0x1c]
imul eax, dword [esp + 0x18]
mov ecx, dword [edi + 0x74]
add eax, eax
add eax, eax
push eax
push 0
push ecx
call fcn.00454970
mov edx, dword [esp + 0x28]
imul edx, dword [esp + 0x24]
mov eax, dword [edi + 0x84]
add edx, edx
add edx, edx
push edx
push 0xff
push eax
call fcn.00454970
mov edx, dword [edi + 0x5c]
add esp, 0x18
lea ecx, [esp + 0x54]
push ecx
push edx
push 0x20
push esi
call dword [sym.imp.ole32.dll_OleDraw]
mov ecx, dword [edi + 0x7c]
lea eax, [esp + 0x54]
push eax
push ecx
push 0x20
push esi
call dword [sym.imp.ole32.dll_OleDraw]
cmp dword [esp + 0x1c], 0
mov ecx, dword [edi + 0x74]
mov esi, dword [edi + 0x84]
mov dword [esp + 0x10], 0
jle 0x407e2f
mov edx, dword [esp + 0x18]
mov dword [esp + 0x24], 0
test edx, edx
jle 0x407dd0
movzx edx, byte [ecx]
movzx eax, byte [ecx + 1]
mov byte [esp + 0x15], dl
movzx edx, byte [ecx + 2]
mov byte [esp + 0x16], dl
movzx edx, byte [esi + 1]
mov byte [esp + 0x17], dl
mov dl, byte [esi + 2]
sub dl, byte [esp + 0x16]
mov byte [esp + 0x14], al
mov al, byte [esi]
sub al, byte [esp + 0x15]
movzx edi, dl
mov dl, byte [esp + 0x17]
sub dl, byte [esp + 0x14]
movzx eax, al
movzx edx, dl
add edi, edx
add edi, eax
mov eax, 0x55555556
imul edi
mov eax, edx
shr eax, 0x1f
add eax, edx
or dl, 0xff
sub dl, al
mov eax, dword [esp + 0x24]
add ecx, 4
mov byte [ecx - 1], dl
mov edx, dword [esp + 0x18]
inc eax
add esi, 4
mov dword [esp + 0x24], eax
cmp eax, edx
jl 0x407d5a
mov edi, dword [esp + 0x30]
mov ebx, dword [esp + 0x28]
inc dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
cmp dword [esp + 0x10], eax
jl 0x407d4e
jmp 0x407e2f
push ebx
call dword [sym.imp.USER32.dll_GetWindowDC]
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x5c]
push 0xcc0020
push 0
push 0
push eax
push ecx
push edx
push 0
mov dword [esp + 0x44], eax
mov eax, dword [edi + 0x5c]
push 0
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
mov ecx, dword [esp + 0x28]
push ecx
push ebx
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [edi + 0x5c]
lea edx, [esp + 0x54]
push edx
push eax
push 0x20
push esi
call dword [sym.imp.ole32.dll_OleDraw]
xor ecx, ecx
cmp dword [edi + 0x78], 0x20
lea edx, [esp + 0x20]
setne cl
lea eax, [esp + 0x3c]
mov dword [esp + 0x20], 0x1ff0000
lea ecx, [ecx + ecx + 2]
push ecx
mov ecx, dword [edi + 0x5c]
push edx
push 0
push eax
push ecx
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x4c]
push eax
push 0
push ebx
call dword [sym.imp.USER32.dll_UpdateLayeredWindow]
mov ecx, dword [esp + 0x8c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0044eeef
mov esp, ebp
pop ebp
ret 0xc