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

Disassembly:
mov eax, dword [ecx + 0x64]
sub esp, 0x7c
cmp eax, 5
push esi
jb 0x4cb3e8
mov al, byte [esp + 0x94]
mov esi, dword [esp + 0x90]
mov byte [0x566df2], al
mov ecx, dword [0x566df0]
push ecx
mov ecx, esi
call fcn.004c93d0
push eax
mov ecx, esi
call fcn.004c93c0
mov edx, dword [esi + 4]
mov ecx, dword [esp + 0x94]
push eax
mov eax, dword [esi]
mov esi, dword [esp + 0x94]
push edx
push eax
push ecx
mov ecx, esi
call fcn.004c93d0
push eax
mov ecx, esi
call fcn.004c93c0
mov edx, dword [esi + 4]
mov ecx, dword [esp + 0xa0]
push eax
mov eax, dword [esi]
push edx
push eax
push ecx
call dword [sym.imp.MSIMG32.dll_AlphaBlend]
pop esi
add esp, 0x7c
ret 0x14
mov edx, dword [esp + 0x8c]
push ebx
push ebp
push edi
mov edi, dword [sym.imp.GDI32.dll_GetCurrentObject]
push 7
push edx
call edi
mov esi, eax
mov eax, dword [esp + 0x90]
push 7
push eax
call edi
mov edi, dword [sym.imp.GDI32.dll_GetObjectA]
lea ecx, [esp + 0x48]
push ecx
push 0x18
mov ebx, eax
push esi
mov dword [esp + 0x38], ebx
call edi
lea edx, [esp + 0x30]
push edx
push 0x18
push ebx
call edi
mov ebx, dword [esp + 0x9c]
mov ecx, ebx
call fcn.004c93d0
imul eax, dword [esp + 0x4c]
shl eax, 2
push eax
call fcn.004fa771
mov ebp, dword [esp + 0x98]
add esp, 4
mov ecx, ebp
mov dword [esp + 0x20], eax
call fcn.004c93d0
imul eax, dword [esp + 0x34]
shl eax, 2
push eax
call fcn.004fa771
mov dword [esp + 0x20], eax
xor eax, eax
add esp, 4
mov ecx, 0xb
lea edi, [esp + 0x60]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x50]
push 0
lea edx, [esp + 0x64]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x24]
push edx
mov dword [esp + 0x70], ecx
push eax
mov ecx, ebx
mov dword [esp + 0x6c], 0x28
mov word [esp + 0x78], 1
mov word [esp + 0x7a], 0x20
mov dword [esp + 0x7c], 0
call fcn.004c93d0
mov edx, dword [ebx + 0xc]
mov ecx, dword [esp + 0x5c]
push eax
sub ecx, edx
mov edx, dword [esp + 0xa8]
push ecx
push esi
mov esi, dword [sym.imp.GDI32.dll_GetDIBits]
push edx
call esi
xor eax, eax
mov ecx, 0xb
lea edi, [esp + 0x60]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x60], 0x28
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x1c]
xor edi, edi
push edi
lea edx, [esp + 0x64]
push edx
mov dword [esp + 0x70], ecx
push eax
mov ecx, ebp
mov word [esp + 0x78], 1
mov word [esp + 0x7a], 0x20
mov dword [esp + 0x7c], edi
call fcn.004c93d0
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x38]
push eax
sub ecx, dword [ebp + 0xc]
mov eax, dword [esp + 0xa0]
push ecx
push edx
push eax
call esi
cmp byte [esp + 0xa0], 0xff
mov ecx, ebp
mov dword [esp + 0x18], edi
jne 0x4cb62d
call fcn.004c93d0
test eax, eax
jle 0x4cb761
nop
mov ecx, ebp
xor esi, esi
call fcn.004c93c0
test eax, eax
jle 0x4cb614
mov eax, dword [ebx]
mov edx, dword [esp + 0x20]
mov ecx, edi
imul edi, dword [esp + 0x34]
imul ecx, dword [esp + 0x4c]
add ecx, eax
add ecx, esi
mov eax, dword [edx + ecx*4]
add edi, dword [ebp]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x14], eax
add edi, esi
mov edx, dword [ecx + edi*4]
mov dword [esp + 0x10], edx
lea edi, [ecx + edi*4]
movzx edx, dl
mov ecx, eax
shr ecx, 0x18
mov eax, 0xff
sub eax, ecx
mov cl, byte [esp + 0x14]
imul edx, eax
sar edx, 8
add dl, cl
mov byte [esp + 0x10], dl
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
shr ecx, 8
movzx ecx, cl
imul ecx, eax
shr edx, 8
sar ecx, 8
add cl, dl
mov byte [esp + 0x11], cl
mov edx, dword [esp + 0x10]
shr edx, 0x10
movzx edx, dl
imul edx, eax
mov eax, dword [esp + 0x14]
shr eax, 0x10
sar edx, 8
add dl, al
mov byte [esp + 0x12], dl
mov eax, dword [esp + 0x10]
mov ecx, ebp
mov dword [edi], eax
inc esi
call fcn.004c93c0
cmp esi, eax
mov edi, dword [esp + 0x18]
jl 0x4cb571
inc edi
mov ecx, ebp
mov dword [esp + 0x18], edi
call fcn.004c93d0
cmp edi, eax
jl 0x4cb560
jmp 0x4cb761
call fcn.004c93d0
test eax, eax
jle 0x4cb761
lea ebx, [ebx]
xor esi, esi
mov ecx, ebp
mov dword [esp + 0x28], esi
call fcn.004c93c0
test eax, eax
jle 0x4cb749
movzx edi, byte [esp + 0xa0]
mov dword [esp + 0x24], edi
jmp 0x4cb670
mov edi, dword [esp + 0x24]
jmp 0x4cb670
mov edx, dword [ebx]
mov ecx, dword [esp + 0x18]
imul ecx, dword [esp + 0x4c]
add ecx, edx
mov edx, dword [esp + 0x20]
add ecx, esi
mov eax, dword [edx + ecx*4]
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x14]
shr ecx, 8
movzx ecx, cl
imul ecx, edi
movzx eax, al
imul eax, edi
shr edx, 0x10
movzx edx, dl
imul edx, edi
mov edi, dword [esp + 0x18]
imul edi, dword [esp + 0x34]
add edi, dword [ebp]
shr ebx, 0x18
imul ebx, dword [esp + 0x24]
add edi, esi
mov esi, dword [esp + 0x1c]
lea edi, [esi + edi*4]
mov esi, dword [edi]
mov dword [esp + 0x10], esi
sar ebx, 8
movzx ebx, bl
mov esi, 0xff
sub esi, ebx
movzx ebx, byte [esp + 0x10]
imul ebx, esi
sar eax, 8
sar ebx, 8
add bl, al
mov byte [esp + 0x10], bl
mov eax, dword [esp + 0x10]
shr eax, 8
movzx eax, al
imul eax, esi
sar ecx, 8
sar eax, 8
add al, cl
mov byte [esp + 0x11], al
mov ecx, dword [esp + 0x10]
shr ecx, 0x10
movzx ecx, cl
imul ecx, esi
mov esi, dword [esp + 0x28]
sar edx, 8
sar ecx, 8
add cl, dl
mov byte [esp + 0x12], cl
mov edx, dword [esp + 0x10]
inc esi
mov ecx, ebp
mov dword [edi], edx
mov dword [esp + 0x28], esi
call fcn.004c93c0
cmp esi, eax
mov ebx, dword [esp + 0x9c]
jl 0x4cb663
mov esi, dword [esp + 0x18]
inc esi
mov ecx, ebp
mov dword [esp + 0x18], esi
call fcn.004c93d0
cmp esi, eax
jl 0x4cb640
mov esi, dword [esp + 0x1c]
push 0
lea eax, [esp + 0x64]
push eax
push esi
mov ecx, ebp
call fcn.004c93d0
mov edx, dword [ebp + 0xc]
mov ecx, dword [esp + 0x44]
push eax
mov eax, dword [esp + 0xa0]
sub ecx, edx
mov edx, dword [esp + 0x3c]
push ecx
push edx
push eax
call dword [sym.imp.GDI32.dll_SetDIBits]
mov ecx, dword [esp + 0x20]
push ecx
call fcn.004fa776
push esi
call fcn.004fa776
add esp, 8
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x7c
ret 0x14