Function at 0x4b83c0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51acff
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x79b0b4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x54], ebx
mov ecx, dword [ebx + 4]
mov eax, dword [ebp + 8]
add ecx, 0x30
push eax
call fcn.0048e410
mov ecx, dword [ebx + 4]
add ecx, 0x30
call fcn.0048fbd0
mov ecx, dword [ebx + 4]
mov eax, dword [eax]
mov dword [ecx + 0x48], eax
mov ecx, dword [ebx + 4]
add ecx, 0x30
call fcn.0048f370
mov edx, dword [ebx + 4]
mov esi, eax
mov dword [ebp - 0x50], esi
mov ecx, dword [esi]
mov dword [edx + 0x4c], ecx
mov edx, dword [ebx + 4]
mov ecx, dword [esi + 8]
mov dword [edx + 0x50], ecx
mov edx, dword [ebx + 4]
mov ecx, dword [esi + 4]
mov dword [edx + 0x54], ecx
mov ecx, dword [ebx + 4]
mov eax, dword [esi + 0xc]
mov dword [ecx + 0x58], eax
mov ecx, dword [ebx + 4]
add ecx, 0x30
call fcn.0048f250
mov eax, dword [eax]
push eax
mov dword [ebp - 0x5c], eax
call fcn.004986a0
mov ecx, dword [ebx + 4]
add esp, 4
mov dword [ecx + 0xa0], eax
mov eax, dword [ebx + 4]
mov eax, dword [eax + 0xa0]
cdq
mov ebx, eax
mov edi, edx
mov eax, dword [esi + 0xc]
cdq
mov esi, eax
mov ecx, edx
mov eax, dword [ebp - 0x50]
push edi
push ebx
mov eax, dword [eax + 4]
cdq
sub esi, eax
sbb ecx, edx
add esi, ebx
adc ecx, edi
push ecx
push esi
call fcn.0050d030
mov esi, eax
mov dword [ebp - 0x68], edx
mov eax, dword [ebp - 0x54]
push edx
push esi
push edi
add eax, 8
mov dword [ebp - 0x64], esi
push ebx
mov dword [ebp - 0x50], eax
call fcn.004639b0
test edx, edx
jne 0x4b84ba
cmp eax, 0x100000
jbe 0x4b8513
mov edi, dword [ebp - 0x50]
mov eax, dword [edi]
mov ecx, dword [eax + 0x30]
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
call eax
mov ecx, dword [edi]
mov ebx, edx
mov edx, dword [ebp - 0x68]
add esi, 0xffffffff
mov dword [ebp - 0x60], eax
adc edx, 0xffffffff
mov ecx, dword [ecx + 0x30]
shld edx, esi, 3
shl esi, 3
mov edi, dword [ecx]
add esi, eax
adc edx, ebx
push edx
push esi
call dword [edi + 0x14]
mov esi, dword [ebp - 0x50]
lea eax, [ebp - 0x6c]
push eax
mov eax, dword [esi]
push dword [eax + 0x30]
call fcn.004989f0
mov eax, dword [esi]
add esp, 8
mov ecx, dword [eax + 0x30]
push ebx
push dword [ebp - 0x60]
mov eax, dword [ecx]
call dword [eax + 0x14]
mov dword [ebp - 0x50], esi
mov ebx, dword [ebp - 0x54]
mov ecx, dword [ebx + 4]
lea eax, [ecx + 0x70]
push eax
lea eax, [ecx + 0x30]
push eax
call fcn.004b0810
push dword [ebp - 0x5c]
mov esi, eax
mov dword [ebp - 0x54], esi
call fcn.004986a0
imul eax, esi
add esp, 0xc
cmp eax, 0x7fffffff
ja 0x4b8726
mov ecx, dword [ebx + 4]
xor edi, edi
mov eax, dword [ecx + 0x98]
sub eax, dword [ecx + 0x94]
sar eax, 2
test eax, eax
je 0x4b8616
push 0x44
call fcn.00462d48
mov esi, eax
add esp, 4
mov dword [ebp - 0x60], esi
mov dword [ebp - 4], 0
test esi, esi
je 0x4b85e3
mov eax, dword [ebx + 4]
add eax, 0x30
push eax
push dword [ebp - 0x54]
push dword [ebp - 0x5c]
call fcn.00498210
push eax
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0x14], eax
call fcn.004b2460
mov dword [esi + 0x18], eax
add esp, 0x10
mov dword [esi + 0x1c], 0xffffffff
mov byte [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0xf
mov byte [esi + 0x24], 0
push 1
lea ecx, [esi + 0x3c]
mov byte [ebp - 4], 1
call fcn.004dab30
jmp 0x4b85e5
xor esi, esi
mov eax, dword [ebx + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [eax + 0x94]
mov dword [eax + edi*4], esi
inc edi
mov ecx, dword [ebx + 4]
mov eax, dword [ecx + 0x98]
sub eax, dword [ecx + 0x94]
sar eax, 2
cmp edi, eax
jb 0x4b8560
mov esi, dword [ebp - 0x54]
mov eax, dword [ecx + 0xa0]
mov edi, dword [ebp - 0x50]
imul eax, esi
mov dword [ecx + 0xa4], eax
mov eax, dword [edi]
mov ecx, dword [eax + 0x30]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
test al, al
jne 0x4b8695
mov ecx, dword [ebx + 4]
xor esi, esi
mov eax, dword [ecx + 0x98]
sub eax, dword [ecx + 0x94]
sar eax, 2
test eax, eax
je 0x4b8695
push 0x10
push dword [ecx + 0xa4]
call fcn.0050d7e3
mov ecx, dword [ebx + 4]
add esp, 8
mov ecx, dword [ecx + 0x94]
mov ecx, dword [ecx + esi*4]
mov dword [ecx + 4], eax
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 0x94]
mov eax, dword [edx + esi*4]
cmp dword [eax + 4], 0
je 0x4b8741
mov eax, dword [ecx + 0x98]
inc esi
sub eax, edx
sar eax, 2
cmp esi, eax
jb 0x4b8650
mov ecx, dword [ebx + 4]
mov eax, dword [ecx + 0x54]
dec eax
mov dword [ecx + 0x6c], eax
mov ecx, dword [ebx + 4]
lea eax, [ecx + 0x7c]
push eax
push dword [ecx + 0xa0]
lea eax, [ecx + 0x70]
push eax
call fcn.004b2820
mov esi, dword [ebx + 4]
add esp, 0xc
mov ebx, dword [ebp - 0x64]
mov edi, dword [esi + 0x60]
mov ecx, edi
mov edx, dword [esi + 0x5c]
sub ecx, edx
sar ecx, 3
cmp ebx, ecx
jae 0x4b86d4
lea eax, [edx + ebx*8]
jmp 0x4b8705
jbe 0x4b8708
mov eax, dword [esi + 0x64]
sub eax, edx
sar eax, 3
cmp ebx, eax
jbe 0x4b86f1
lea eax, [ebp - 0x55]
push eax
push ebx
lea ecx, [esi + 0x5c]
call fcn.00491c00
jmp 0x4b8708
sub ebx, ecx
shl ebx, 3
push ebx
push 0
push edi
call fcn.00464ad0
add esp, 0xc
lea eax, [ebx + edi]
mov dword [esi + 0x60], eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00462b2c
mov esp, ebp
pop ebp
ret 4
push str.maximum_bytes_per_scanline_exceeds_maximum_permissible_size
lea ecx, [ebp - 0x4c]
call fcn.004d82f0
push 0x79555c
lea eax, [ebp - 0x4c]
push eax
call fcn.004644df
push str.Failed_to_allocate_memory_for_scanline_buffers
lea ecx, [ebp - 0x4c]
call fcn.004d84b0
push 0x796000
lea eax, [ebp - 0x4c]
push eax
call fcn.004644df
int3