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

Disassembly:
sub esp, 0x78
push ebx
push ebp
push esi
push edi
xor esi, esi
push esi
mov dword [esp + 0x20], esi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov edi, eax
cmp edi, esi
mov dword [esp + 0x2c], edi
jne 0x446048
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x78
ret
mov ebx, dword [esp + 0x90]
mov ebp, dword [esp + 0x94]
push esi
push esi
lea eax, [esp + 0x3c]
push eax
push esi
lea ecx, [esp + 0x70]
push ecx
push edi
mov dword [esp + 0x78], 0x28
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x80], ebp
mov word [esp + 0x84], 1
mov word [esp + 0x86], 0x20
mov dword [esp + 0x88], esi
mov dword [esp + 0x8c], esi
mov dword [esp + 0x90], esi
mov dword [esp + 0x94], esi
mov dword [esp + 0x98], esi
mov dword [esp + 0x9c], esi
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov esi, eax
test esi, esi
je 0x446377
push esi
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
lea edx, [esp + 0x48]
push edx
push 0x18
push esi
mov dword [esp + 0x3c], eax
call dword [sym.imp.GDI32.dll_GetObjectW]
mov eax, dword [esp + 0x54]
mov ecx, eax
and ecx, 0x80000003
jns 0x4460f2
dec ecx
or ecx, 0xfffffffc
inc ecx
je 0x44610c
add eax, 1
mov edx, eax
and edx, 0x80000003
jns 0x446106
dec edx
or edx, 0xfffffffc
inc edx
jne 0x4460f4
mov dword [esp + 0x54], eax
push ebp
push ebx
push 0
push 0
lea eax, [esp + 0x48]
push eax
call dword [sym.imp.USER32.dll_SetRect]
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x8c]
push 0xcc0020
push eax
push ecx
push edx
mov edx, dword [esp + 0x54]
sub edx, eax
mov eax, dword [esp + 0x50]
push edx
sub eax, ecx
push eax
push 0
push 0
push edi
call dword [sym.imp.GDI32.dll_BitBlt]
push 0x660
push 2
mov dword [esp + 0x20], 0x64
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov esi, eax
xor eax, eax
push eax
push eax
push 0x7fffffff
push 0x7fffffff
lea ecx, [esi + 0x10]
push ecx
mov dword [esi], 0x20
mov dword [esi + 4], 1
mov dword [esi + 0xc], eax
mov dword [esi + 8], eax
call dword [sym.imp.USER32.dll_SetRect]
mov edx, dword [esp + 0x50]
add edx, 0xffffffff
imul edx, dword [esp + 0x54]
add edx, dword [esp + 0x5c]
cmp dword [esp + 0x94], 0
mov dword [esp + 0x24], edx
mov dword [esp + 0x14], 0
jle 0x446325
xor edi, edi
test ebx, ebx
jle 0x446301
mov eax, dword [esp + 0x18]
add eax, 2
shl eax, 4
mov dword [esp + 0x20], eax
lea ebx, [ebx]
cmp edi, ebx
mov ecx, edi
mov dword [esp + 0x28], ecx
lea eax, [edx + edi*4]
jge 0x4462f2
test dword [eax], 0xff000000
je 0x446203
add edi, 1
add eax, 4
cmp edi, ebx
jl 0x4461f1
cmp edi, ecx
jle 0x4462f2
mov edx, dword [esp + 0x18]
cmp dword [esi + 8], edx
jb 0x446242
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [esp + 0x20]
add dword [esp + 0x18], 0x64
add eax, 0x640
push 2
push eax
push ebp
mov dword [esp + 0x2c], eax
call dword [sym.imp.KERNEL32.dll_GlobalReAlloc]
mov ebp, eax
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov esi, eax
mov ebx, dword [esp + 0x14]
mov edx, dword [esi + 8]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x28]
add ebx, 1
push ebx
push edi
add edx, 2
push eax
shl edx, 4
push ecx
add edx, esi
push edx
call dword [sym.imp.USER32.dll_SetRect]
mov eax, dword [esp + 0x28]
cmp eax, dword [esi + 0x10]
jge 0x446273
mov dword [esi + 0x10], eax
mov eax, dword [esp + 0x14]
cmp eax, dword [esi + 0x14]
jge 0x44627f
mov dword [esi + 0x14], eax
cmp edi, dword [esi + 0x18]
jle 0x446287
mov dword [esi + 0x18], edi
cmp ebx, dword [esi + 0x1c]
jle 0x44628f
mov dword [esi + 0x1c], ebx
add dword [esi + 8], 1
cmp dword [esi + 8], 0x7d0
jne 0x4462eb
mov eax, dword [esp + 0x20]
push esi
push eax
push 0
call dword [sym.imp.GDI32.dll_ExtCreateRegion]
mov ebx, eax
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4462c8
push 2
push ebx
push eax
push eax
call dword [sym.imp.GDI32.dll_CombineRgn]
push ebx
call dword [sym.imp.GDI32.dll_DeleteObject]
jmp 0x4462cc
mov dword [esp + 0x1c], ebx
push 0
push 0
push 0x7fffffff
push 0x7fffffff
lea eax, [esi + 0x10]
push eax
mov dword [esi + 8], 0
call dword [sym.imp.USER32.dll_SetRect]
mov ebx, dword [esp + 0x90]
mov edx, dword [esp + 0x24]
add edi, 1
cmp edi, ebx
jl 0x4461e0
mov eax, dword [esp + 0x14]
sub edx, dword [esp + 0x54]
add eax, 1
cmp eax, dword [esp + 0x94]
mov dword [esp + 0x24], edx
mov dword [esp + 0x14], eax
jl 0x4461c2
mov edi, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
push ecx
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov ebx, dword [sym.imp.GDI32.dll_DeleteObject]
push eax
call ebx
mov edx, dword [esp + 0x18]
add edx, 2
push esi
shl edx, 4
push edx
push 0
call dword [sym.imp.GDI32.dll_ExtCreateRegion]
mov esi, eax
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x446368
push 2
push esi
push eax
push eax
call dword [sym.imp.GDI32.dll_CombineRgn]
push esi
call ebx
jmp 0x44636c
mov dword [esp + 0x1c], esi
test ebp, ebp
je 0x446377
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x78
ret