Function at 0x52b720
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x59fb2c
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6a3b20]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x18], ebx
mov ebp, dword [esp + 0x34]
lea eax, [esp + 0x14]
push eax
mov ecx, ebp
mov dword [esp + 0x28], 1
call fcn.0052b290
mov dword [esp + 0x34], eax
mov eax, dword [ebp]
mov ecx, dword [eax + 0x1c]
mov byte [esp + 0x24], 2
cmp ecx, ebx
je 0x52b77b
mov ebx, dword [ecx + 8]
mov ecx, dword [esp + 0x30]
mov esi, dword [eax + 4]
mov byte [ecx + 0x14], 0
push str.FAV::VideoFormat_pixelFormat:
lea ecx, [esp + 0x34]
call dword [0x5a7d58]
mov edi, eax
mov ecx, dword [edi]
push esi
mov esi, dword [0x5a7ce0]
call esi
mov ecx, edi
call dword [0x5a7ccc]
and ebx, 0x80
cmp bl, 0x80
sete dl
movzx ecx, dl
mov edx, dword [esp + 0x34]
push ecx
push str._alpha:
push edx
push 0x5aa348
mov ecx, eax
call dword [0x5a7d58]
mov ecx, eax
call dword [0x5a7d5c]
mov ecx, eax
call dword [0x5a7d58]
mov ecx, eax
call dword [0x5a774c]
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], 1
call dword [0x5a7d90]
mov eax, dword [ebp]
cmp dword [eax + 0x1c], 0
jne 0x52b805
xor ebx, ebx
jmp 0x52b80c
mov eax, dword [eax + 0x1c]
movzx ebx, byte [eax + 4]
mov ecx, dword [esp + 0x30]
mov byte [ecx + 0x14], 0
push str.__channels:
lea ecx, [esp + 0x34]
call dword [0x5a7d58]
mov edi, eax
mov ecx, dword [edi]
push ebx
call esi
mov ecx, edi
call dword [0x5a7ccc]
mov eax, dword [ebp]
mov edx, dword [esp + 0x30]
movzx ebx, byte [eax + 0x10]
push str.__planes:
lea ecx, [esp + 0x34]
mov byte [edx + 0x14], 0
call dword [0x5a7d58]
mov edi, eax
mov ecx, dword [edi]
push ebx
call esi
mov ecx, dword [edi]
cmp byte [ecx + 0x14], 0
je 0x52b867
push 0x20
call dword [0x5a7ce4]
mov eax, dword [ebp]
movzx ebx, byte [eax + 0x13]
mov eax, dword [esp + 0x30]
push str.__bpc:
lea ecx, [esp + 0x34]
mov byte [eax + 0x14], 0
call dword [0x5a7d58]
mov edi, eax
mov ecx, dword [edi]
push ebx
call esi
mov ecx, dword [edi]
cmp byte [ecx + 0x14], 0
je 0x52b89c
push 0x20
call dword [0x5a7ce4]
mov eax, dword [ebp]
movzx ecx, byte [eax + 0x12]
mov edx, dword [esp + 0x30]
movzx ebx, byte [eax + 0x11]
mov dword [esp + 0x34], ecx
push str.__bpp:
lea ecx, [esp + 0x34]
mov byte [edx + 0x14], 0
call dword [0x5a7d58]
mov edi, eax
mov ecx, dword [edi]
push ebx
call esi
mov ecx, dword [edi]
cmp byte [ecx + 0x14], 0
je 0x52b8d9
push 0x20
call dword [0x5a7ce4]
push 0x5b4b64
mov ecx, edi
call dword [0x5a7d58]
mov edi, eax
mov eax, dword [esp + 0x34]
mov ecx, dword [edi]
push eax
call esi
mov ecx, dword [edi]
cmp byte [ecx + 0x14], 0
je 0x52b901
push 0x20
call dword [0x5a7ce4]
push 0x5aa348
mov ecx, edi
call dword [0x5a7d58]
mov eax, dword [ebp]
xor ebx, ebx
cmp byte [eax + 0x10], bl
jbe 0x52b977
mov ecx, dword [eax + 0x14]
cmp ebx, dword [ecx + 4]
jl 0x52b92a
mov dword [esp + 0x34], 0
jmp 0x52b939
mov eax, ecx
mov edx, dword [eax + 0xc]
lea ecx, [edx + ebx*4]
mov edx, dword [ecx + eax]
mov dword [esp + 0x34], edx
mov eax, dword [esp + 0x30]
push 0x5aa83c
lea ecx, [esp + 0x34]
mov byte [eax + 0x14], 0
call dword [0x5a7d58]
mov ecx, dword [esp + 0x34]
mov edi, eax
push ecx
mov ecx, dword [edi]
call esi
mov ecx, dword [edi]
cmp byte [ecx + 0x14], 0
je 0x52b96b
push 0x20
call dword [0x5a7ce4]
mov eax, dword [ebp]
movzx edx, byte [eax + 0x10]
inc ebx
cmp ebx, edx
jl 0x52b918
mov eax, dword [esp + 0x30]
push 0x5aab7c
lea ecx, [esp + 0x34]
mov byte [eax + 0x14], 0
call dword [0x5a7d58]
mov ecx, dword [esp + 0x30]
mov byte [ecx + 0x14], 1
mov ecx, dword [esp + 0x30]
push 0x20
call dword [0x5a7ce4]
mov eax, dword [esp + 0x30]
mov esi, dword [esp + 0x2c]
mov ecx, 1
mov dword [esi], eax
add dword [eax + 0xc], ecx
mov dword [esp + 0x18], ecx
lea ecx, [esp + 0x30]
mov byte [esp + 0x24], 0
call dword [0x5a7d60]
mov eax, esi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret