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

Disassembly:
sub esp, 0x46c
push ebx
push ebp
push esi
push edi
xor ebx, ebx
push ebx
call dword [sym.imp.USER32.dll_GetDC]
push 0x42c
mov ebp, eax
lea eax, [esp + 0x54]
push ebx
push eax
call fcn.006a1300
mov esi, dword [esp + 0x48c]
mov edx, dword [esi + 4]
mov edi, dword [sym.imp.GDI32.dll_GetDIBits]
add esp, 0xc
push ebx
lea ecx, [esp + 0x54]
push ecx
push ebx
push ebx
push ebx
push edx
push ebp
mov dword [esp + 0x6c], 0x28
call edi
mov ax, word [esp + 0x5e]
cmp ax, 0x20
je 0x5070eb
cmp ax, 8
jne 0x5070c0
mov eax, dword [esp + 0x64]
cmp eax, 1
mov ebx, eax
jb 0x507275
push eax
call fcn.0069c0de
push ebx
xor ebx, ebx
mov esi, eax
push ebx
push esi
call fcn.006a1300
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x490]
add esp, 0x10
push ebx
lea eax, [esp + 0x54]
push eax
mov eax, dword [edx + 4]
push esi
push ecx
push ebx
push eax
push ebp
call edi
push 0x2c
lea ecx, [esp + 0x28]
push ebx
push ecx
call fcn.006a1300
mov edx, dword [esp + 0x60]
mov eax, dword [esp + 0x64]
add esp, 0xc
push ebx
push ebx
lea ecx, [esp + 0x18]
push ecx
mov dword [esp + 0x34], edx
push ebx
lea edx, [esp + 0x34]
push edx
push ebp
mov dword [esp + 0x3c], 0x2c
mov dword [esp + 0x44], eax
mov word [esp + 0x48], 1
mov word [esp + 0x4a], 0x20
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x28], ebx
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov ebx, eax
test ebx, ebx
je 0x507263
cmp dword [esp + 0x10], 0
je 0x507263
push ebx
push ebp
call dword [sym.imp.GDI32.dll_SelectObject]
movzx ecx, word [esp + 0x5e]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x64]
shr ecx, 3
xor edx, edx
div ecx
xor edi, edi
test eax, eax
mov dword [esp + 0x18], eax
jbe 0x5070a4
jmp 0x507050
movzx ecx, byte [edi + esi]
cmp byte [esp + ecx*4 + 0x78], 0xc0
mov edx, dword [esp + 0x10]
lea ecx, [esp + ecx*4 + 0x78]
lea edx, [edx + edi*4]
jne 0x507083
cmp byte [ecx + 1], 0xc0
jne 0x507083
cmp byte [ecx + 2], 0xc0
jne 0x507083
mov byte [edx], 0
mov byte [edx + 1], 0
mov byte [edx + 2], 0
mov byte [edx + 3], 0
jmp 0x50709d
mov byte [edx + 3], 0xff
movzx eax, byte [ecx + 2]
mov byte [edx + 2], al
movzx eax, byte [ecx + 1]
mov byte [edx + 1], al
mov cl, byte [ecx]
mov eax, dword [esp + 0x18]
mov byte [edx], cl
add edi, 1
cmp edi, eax
jb 0x507050
mov edx, dword [esp + 0x14]
push edx
push ebp
call dword [sym.imp.GDI32.dll_SelectObject]
push esi
call fcn.0069c8fa
mov esi, dword [esp + 0x484]
add esp, 4
push ebp
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
test ebx, ebx
je 0x507275
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
pop edi
mov dword [esi + 4], ebx
pop esi
pop ebp
pop ebx
add esp, 0x46c
ret 4
mov eax, dword [esp + 0x64]
cmp eax, 4
mov ebx, eax
jb 0x507275
push eax
call fcn.0069c0de
push ebx
mov esi, eax
push 0
push esi
mov dword [esp + 0x28], esi
call fcn.006a1300
mov edx, dword [esp + 0x68]
mov ebx, dword [esp + 0x490]
mov eax, dword [ebx + 4]
add esp, 0x10
push 0
lea ecx, [esp + 0x54]
push ecx
push esi
push edx
push 0
push eax
push ebp
call edi
xor eax, eax
push eax
push eax
lea ecx, [esp + 0x24]
push ecx
push eax
lea edx, [esp + 0x60]
push edx
push ebp
mov dword [esp + 0x34], eax
mov dword [esp + 0x78], eax
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov edi, eax
test edi, edi
mov dword [esp + 0x14], edi
je 0x507263
cmp dword [esp + 0x1c], 0
je 0x507263
push edi
push ebp
call dword [sym.imp.GDI32.dll_SelectObject]
movzx ecx, word [esp + 0x5e]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x64]
shr ecx, 3
xor edx, edx
div ecx
test eax, eax
jbe 0x507227
mov ebx, 0xfffffffd
lea ecx, [esi + 3]
sub ebx, esi
mov dword [esp + 0x10], eax
jmp 0x5071a0
mov dl, byte [ecx]
lea esi, [ebx + ecx]
add esi, dword [esp + 0x1c]
add ecx, 4
mov byte [esi + 3], dl
movzx eax, byte [ecx - 4]
movzx edi, byte [ecx - 5]
imul edi, eax
mov eax, 0x80808081
imul edi
add edx, edi
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
mov byte [esi + 2], al
movzx edx, byte [ecx - 4]
movzx edi, byte [ecx - 6]
imul edi, edx
mov eax, 0x80808081
imul edi
add edx, edi
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
mov byte [esi + 1], al
movzx edx, byte [ecx - 4]
movzx edi, byte [ecx - 7]
imul edi, edx
mov eax, 0x80808081
imul edi
add edx, edi
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
sub dword [esp + 0x10], 1
mov byte [esi], al
jne 0x5071a0
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
mov ebx, dword [esp + 0x480]
mov ecx, dword [esp + 0x20]
push ecx
push ebp
call dword [sym.imp.GDI32.dll_SelectObject]
push esi
call fcn.0069c8fa
add esp, 4
push ebp
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [ebx + 4]
test eax, eax
je 0x507275
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov dword [ebx + 4], edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x46c
ret 4
push esi
call fcn.0069c8fa
add esp, 4
push ebp
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x46c
ret 4