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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x84
mov eax, dword [0x4cc99c]
xor eax, esp
mov dword [esp + 0x80], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, ecx
mov ebx, dword [edi + 0x2c]
mov esi, dword [edi + 0x40]
mov ecx, dword [edi + 0x24]
mov dword [esp + 0x2c], edi
mov dword [esp + 0x24], eax
mov dword [esp + 0x18], esi
mov dword [esp + 0x30], ecx
test ebx, ebx
je 0x410895
mov dword [esp + 0x10], ebx
jmp 0x41089e
mov edx, dword [edi + 0x28]
mov dword [esp + 0x10], edx
mov ebx, edx
cmp dword [edi + 0x50], 0
jne 0x41091d
lea eax, [esp + 0x54]
push eax
push esi
call dword [sym.imp.USER32.dll_GetClientRect]
test ebx, ebx
je 0x410cbc
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x4108f7
push esi
call dword [sym.imp.USER32.dll_GetDC]
lea ecx, [esp + 0x54]
push ecx
mov edi, eax
push edi
push 1
push ebx
call dword [sym.imp.ole32.dll_OleDraw]
push edi
push esi
call dword [sym.imp.USER32.dll_ReleaseDC]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x80]
xor ecx, esp
call fcn.00497792
mov esp, ebp
pop ebp
ret 0xc
lea edx, [esp + 0x54]
push edx
push eax
push 1
push ebx
call dword [sym.imp.ole32.dll_OleDraw]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x80]
xor ecx, esp
call fcn.00497792
mov esp, ebp
pop ebp
ret 0xc
lea eax, [esp + 0x44]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowRect]
cmp dword [edi + 0x5c], 0
je 0x410946
lea ecx, [edi + 0x64]
push ecx
lea edx, [esp + 0x48]
push edx
call dword [sym.imp.USER32.dll_EqualRect]
test eax, eax
jne 0x410a8e
mov eax, dword [edi + 0x5c]
test eax, eax
je 0x410954
push eax
call dword [sym.imp.GDI32.dll_DeleteDC]
mov eax, dword [edi + 0x60]
mov ebx, dword [sym.imp.GDI32.dll_DeleteObject]
test eax, eax
je 0x410964
push eax
call ebx
mov eax, dword [edi + 0x7c]
test eax, eax
je 0x410972
push eax
call dword [sym.imp.GDI32.dll_DeleteDC]
mov eax, dword [edi + 0x80]
test eax, eax
je 0x41097f
push eax
call ebx
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 esi
mov dword [edi + 0x70], eax
call dword [sym.imp.USER32.dll_GetDC]
mov ecx, dword [esp + 0x48]
sub ecx, dword [esp + 0x50]
mov ebx, dword [sym.imp.GDI32.dll_CreateCompatibleDC]
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 ebx
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 0x410a65
push esi
call ebx
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]
mov edx, dword [esp + 0x18]
push esi
push edx
call dword [sym.imp.USER32.dll_ReleaseDC]
cmp dword [edi + 0x78], 0
jne 0x410a86
mov eax, dword [edi + 0x5c]
push 0xc
push eax
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov dword [edi + 0x78], eax
mov esi, dword [esp + 0x18]
mov ebx, dword [esp + 0x10]
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x48]
xor edx, edx
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], edx
mov edx, dword [esp + 0x4c]
sub edx, eax
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x50]
sub eax, ecx
cmp dword [esp + 0x30], 0
mov dword [esp + 0x40], ecx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], eax
je 0x410c83
test ebx, ebx
je 0x410c83
lea ecx, [esp + 0x54]
push ecx
push esi
call dword [sym.imp.USER32.dll_GetClientRect]
cmp dword [edi + 0x78], 0x20
jne 0x410c2d
cmp dword [edi + 0x54], 0
jne 0x410b1e
mov edx, dword [esp + 0x20]
imul edx, dword [esp + 0x1c]
mov eax, dword [edi + 0x74]
add edx, edx
add edx, edx
push edx
push 0
push eax
call sub.MSVCR100.dll_memset
mov edx, dword [edi + 0x5c]
add esp, 0xc
lea ecx, [esp + 0x54]
push ecx
push edx
push 0x20
push ebx
call dword [sym.imp.ole32.dll_OleDraw]
jmp 0x410c83
mov eax, dword [esp + 0x20]
imul eax, dword [esp + 0x1c]
mov ecx, dword [edi + 0x74]
add eax, eax
add eax, eax
push eax
push 0
push ecx
call sub.MSVCR100.dll_memset
mov edx, dword [esp + 0x2c]
imul edx, dword [esp + 0x28]
mov eax, dword [edi + 0x84]
add edx, edx
add edx, edx
push edx
push 0xff
push eax
call sub.MSVCR100.dll_memset
mov edx, dword [edi + 0x5c]
mov esi, dword [sym.imp.ole32.dll_OleDraw]
add esp, 0x18
lea ecx, [esp + 0x54]
push ecx
push edx
push 0x20
push ebx
call esi
mov ecx, dword [edi + 0x7c]
lea eax, [esp + 0x54]
push eax
push ecx
push 0x20
push ebx
call esi
cmp dword [esp + 0x20], 0
mov ecx, dword [edi + 0x74]
mov esi, dword [edi + 0x84]
mov dword [esp + 0x10], 0
jle 0x410c7f
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x24], 0
test edx, edx
jle 0x410c19
movzx edx, byte [ecx]
movzx eax, byte [ecx + 1]
mov byte [esp + 0x14], 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 + 0x15], al
mov al, byte [esi]
sub al, byte [esp + 0x14]
movzx edi, dl
mov dl, byte [esp + 0x17]
sub dl, byte [esp + 0x15]
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 + 0x1c]
inc eax
add esi, 4
mov dword [esp + 0x24], eax
cmp eax, edx
jl 0x410ba7
mov edi, dword [esp + 0x2c]
inc dword [esp + 0x10]
mov eax, dword [esp + 0x20]
cmp dword [esp + 0x10], eax
jl 0x410b9b
jmp 0x410c7f
push esi
call dword [sym.imp.USER32.dll_GetParent]
mov esi, eax
push esi
call dword [sym.imp.USER32.dll_GetWindowDC]
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x5c]
push 0xcc0020
push 0
push 0
mov ebx, eax
mov eax, dword [edi + 0x5c]
push ebx
push ecx
push edx
push 0
push 0
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
push ebx
push esi
call dword [sym.imp.USER32.dll_ReleaseDC]
mov edx, dword [edi + 0x5c]
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x54]
push ecx
push edx
push 0x20
push eax
call dword [sym.imp.ole32.dll_OleDraw]
mov esi, dword [esp + 0x18]
xor ecx, ecx
cmp dword [edi + 0x78], 0x20
lea edx, [esp + 0x28]
setne cl
lea eax, [esp + 0x34]
mov dword [esp + 0x28], 0x1ff0000
lea ecx, [ecx + ecx + 2]
push ecx
mov ecx, dword [edi + 0x5c]
push edx
push 0
push eax
push ecx
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x54]
push eax
push 0
push esi
call dword [sym.imp.USER32.dll_UpdateLayeredWindow]
mov ecx, dword [esp + 0x8c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00497792
mov esp, ebp
pop ebp
ret 0xc