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

Disassembly:
sub esp, 0x6c
mov eax, dword [esp + 0x74]
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x20]
push eax
push ecx
call dword [sym.imp.USER32.dll_CopyRect]
mov ebp, dword [esp + 0x80]
push ebp
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ebx, eax
mov edx, dword [esp + 0x28]
mov ecx, 0xa
xor eax, eax
lea edi, [esp + 0x54]
push 0
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x30]
mov edi, dword [esp + 0x24]
sub eax, ecx
push 0
push 0
lea ecx, [esp + 0x5c]
push 0
sub edx, edi
push ecx
push ebp
mov dword [esp + 0x68], 0x28
mov dword [esp + 0x6c], edx
mov dword [esp + 0x70], eax
mov word [esp + 0x74], 1
mov word [esp + 0x76], 0x20
mov dword [esp + 0x78], 0
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov ebp, dword [sym.imp.GDI32.dll_SelectObject]
mov edi, eax
push edi
push ebx
mov dword [esp + 0x1c], edi
call ebp
push 0
lea ecx, [esi + 0x24]
mov dword [esp + 0x20], eax
call fcn.004f9350
push eax
push ebx
call ebp
push 1
push ebx
mov dword [esp + 0x20], eax
call dword [sym.imp.GDI32.dll_SetBkMode]
lea edx, [esp + 0x20]
mov ecx, esi
push edx
push ebx
call fcn.00510060
push 0
mov ecx, esi
call fcn.0050e080
test eax, eax
je 0x50ff8b
push ebx
call dword [sym.imp.GDI32.dll_SaveDC]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x40]
push eax
mov ecx, esi
call fcn.00510800
mov edi, eax
mov eax, dword [edi]
mov ecx, dword [edi + 4]
mov edx, dword [edi + 8]
mov edi, dword [edi + 0xc]
push edi
push edx
push ecx
push eax
push ebx
call dword [sym.imp.GDI32.dll_IntersectClipRect]
mov ecx, dword [esi + 0x2830]
xor edi, edi
dec ecx
js 0x50fee2
xor edx, edx
lea eax, [esp + 0x30]
mov dword [esp + 0x34], edx
push eax
mov dword [esp + 0x3c], edx
push edi
mov ecx, esi
mov dword [esp + 0x38], 0
mov dword [esp + 0x44], edx
call fcn.0050e3f0
push eax
mov ecx, esi
call fcn.00512c90
mov edx, dword [esp + 0x84]
xor ecx, ecx
mov dword [esp + 0x44], ecx
lea eax, [esp + 0x30]
mov dword [esp + 0x48], ecx
push edx
mov dword [esp + 0x50], ecx
lea ecx, [esp + 0x44]
push eax
push ecx
mov dword [esp + 0x4c], 0
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x50fed6
lea edx, [esp + 0x30]
mov ecx, esi
push edx
push edi
push ebx
call fcn.00510130
mov eax, dword [esi + 0x2830]
inc edi
dec eax
cmp edi, eax
jle 0x50fe6b
mov ecx, esi
call fcn.0050e9e0
mov edi, eax
cmp edi, 0xffffffff
je 0x50ff6b
cmp edi, dword [esi + 0x296c]
jl 0x50ff6b
cmp edi, dword [esi + 0x2970]
jg 0x50ff6b
xor ecx, ecx
lea edx, [esp + 0x30]
mov dword [esp + 0x34], ecx
push edx
mov dword [esp + 0x3c], ecx
push edi
mov dword [esp + 0x44], ecx
mov ecx, esi
mov dword [esp + 0x38], 0
call fcn.0050e3f0
push eax
mov ecx, esi
call fcn.00512c90
mov ecx, dword [esp + 0x84]
xor eax, eax
mov dword [esp + 0x44], eax
lea edx, [esp + 0x30]
mov dword [esp + 0x48], eax
push ecx
mov dword [esp + 0x50], eax
lea eax, [esp + 0x44]
push edx
push eax
mov dword [esp + 0x4c], 0
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x50ff6b
lea ecx, [esp + 0x30]
push ecx
push edi
push ebx
mov ecx, esi
call fcn.00510130
mov edx, dword [esp + 0x10]
push edx
push ebx
call dword [sym.imp.GDI32.dll_RestoreDC]
push ebx
mov ecx, esi
call fcn.00510180
push ebx
mov ecx, esi
call fcn.0050fff0
mov edi, dword [esp + 0x14]
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
push 0xcc0020
push 0
push 0
sub ecx, eax
push ebx
push ecx
mov ecx, dword [esp + 0x34]
sub edx, ecx
push edx
push eax
mov eax, dword [esp + 0x9c]
push ecx
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
mov ecx, dword [esp + 0x18]
push ecx
push ebx
call ebp
mov edx, dword [esp + 0x1c]
push edx
push ebx
call ebp
push edi
call dword [sym.imp.GDI32.dll_DeleteObject]
push ebx
call dword [sym.imp.GDI32.dll_DeleteDC]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x6c
ret 8