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

Disassembly:
sub esp, 0x70
push ebp
push edi
mov edi, ecx
xor ebp, ebp
mov eax, dword [edi]
cmp eax, ebp
jne 0x615f39
pop edi
xor eax, eax
pop ebp
add esp, 0x70
ret 8
push ebx
push esi
mov esi, dword [edi]
push ebp
mov ecx, esi
mov eax, dword [esi]
call dword [eax + 0x80]
cdq
sub eax, edx
mov edx, dword [esi]
sar eax, 1
push eax
mov ecx, esi
call dword [edx + 0x7c]
cdq
sub eax, edx
lea ecx, [esp + 0x64]
sar eax, 1
push eax
call fcn.004aa060
mov edx, dword [esp + 0x60]
mov esi, dword [esp + 0x64]
xor ecx, ecx
xor eax, eax
mov dword [esp + 0x50], ecx
mov ecx, dword [edi]
mov dword [esp + 0x54], edx
mov dword [esp + 0x4c], eax
mov dword [esp + 0x58], esi
mov eax, dword [ecx]
push ebp
lea edx, [esp + 0x40]
push ebp
push edx
call dword [eax + 0x78]
push eax
mov eax, dword [edi]
lea ecx, [esp + 0x58]
push eax
push ecx
lea ecx, [esp + 0x70]
call fcn.004aab40
push 0x4000
call fcn.0076d5a7
mov ebx, eax
mov ecx, 0x1000
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
add esp, 4
xor ecx, ecx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], ebp
push ecx
push eax
lea ecx, [esp + 0x64]
call fcn.004aa840
mov eax, dword [esp + 0x64]
mov dword [esp + 0x10], ebp
cmp eax, ebp
jle 0x6160ec
mov eax, dword [esp + 0x60]
xor ebp, ebp
test eax, eax
jle 0x6160d7
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x60]
mov dword [esp + 0x40], ebp
mov dword [esp + 0x44], edx
call fcn.0075f770
mov cx, word [0x83b2c8]
mov edx, eax
shr dx, cl
mov ecx, dword [0x83b2cc]
mov ebx, eax
mov dword [esp + 0x34], ebp
shl dl, cl
mov cx, word [0x83b2d8]
shr bx, cl
mov ecx, dword [0x83b2dc]
and edx, 0xf0
mov edi, edx
shl bl, cl
mov cx, word [0x83b2d0]
shr ax, cl
mov ecx, dword [0x83b2d4]
and ebx, 0xf0
shl al, cl
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x38], ecx
mov ecx, dword [0x83b2cc]
sar edx, cl
mov ecx, dword [0x83b2c8]
and eax, 0xf0
mov esi, eax
mov eax, ebx
shl edx, cl
mov ecx, dword [0x83b2dc]
sar eax, cl
mov ecx, dword [0x83b2d8]
shl eax, cl
mov ecx, dword [0x83b2d4]
or edx, eax
mov eax, esi
sar eax, cl
mov ecx, dword [0x83b2d0]
shl eax, cl
lea ecx, [esp + 0x34]
or edx, eax
push edx
push ecx
lea ecx, [esp + 0x64]
call fcn.0075f7c0
mov ecx, dword [esp + 0x1c]
sar esi, 4
shl edi, 4
or esi, edi
or esi, ebx
mov eax, dword [ecx + esi*4]
test eax, eax
jne 0x6160c2
inc dword [esp + 0x18]
inc eax
inc ebp
mov dword [ecx + esi*4], eax
mov eax, dword [esp + 0x60]
cmp ebp, eax
jl 0x615fed
mov ebx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x64]
inc ecx
cmp ecx, edx
mov dword [esp + 0x10], ecx
jl 0x615fe3
lea ecx, [esp + 0x5c]
call fcn.004aaa00
mov edi, dword [esp + 0x84]
lea edx, [edi + edi]
push edx
call fcn.0076d5a7
add esp, 4
mov dword [esp + 0x18], eax
test edi, edi
mov dword [esp + 0x14], 0
jle 0x616161
mov dword [esp + 0x10], eax
or ecx, 0xffffffff
xor ebp, ebp
xor eax, eax
mov esi, ebx
mov edx, dword [esi]
cmp edx, ebp
jle 0x61612f
mov ebp, edx
mov ecx, eax
inc eax
add esi, 4
cmp eax, 0x1000
jl 0x616125
cmp ecx, 0xffffffff
je 0x616161
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [ebx + ecx*4], 0
inc eax
mov word [edx], cx
add edx, 2
cmp eax, edi
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], edx
jl 0x61611c
mov eax, dword [esp + 0x60]
imul eax, dword [esp + 0x64]
push eax
call fcn.0076d5a7
add esp, 4
mov dword [esp + 0x2c], eax
mov dword [esp + 0x24], eax
xor ecx, ecx
xor eax, eax
push ecx
push eax
lea ecx, [esp + 0x64]
call fcn.004aa840
mov eax, dword [esp + 0x64]
mov dword [esp + 0x10], 0
test eax, eax
jle 0x6162ff
mov eax, dword [esp + 0x60]
xor ecx, ecx
test eax, eax
mov dword [esp + 0x28], ecx
jle 0x6162ea
mov dword [esp + 0x4c], ecx
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x4c]
mov dword [esp + 0x50], ecx
push edx
lea ecx, [esp + 0x60]
call fcn.0075f770
mov cx, word [0x83b2c8]
mov edx, eax
shr dx, cl
mov ecx, dword [0x83b2cc]
xor ebp, ebp
mov dword [esp + 0x14], 0xffffffff
mov dword [esp + 0x20], 0xffff
shl dl, cl
mov cx, word [0x83b2d8]
mov byte [esp + 0x3c], dl
mov edx, eax
shr dx, cl
mov ecx, dword [0x83b2dc]
shl dl, cl
mov cx, word [0x83b2d0]
shr ax, cl
mov ecx, dword [0x83b2d4]
mov byte [esp + 0x3d], dl
shl al, cl
test edi, edi
mov byte [esp + 0x3e], al
jle 0x6162c6
mov ebx, dword [esp + 0x3e]
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x3d]
mov edi, dword [esp + 0x18]
and ebx, 0xff
and ecx, 0xff
and eax, 0xff
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], eax
jmp 0x616259
mov ecx, dword [esp + 0x30]
mov si, word [edi]
and esi, 0xffff
mov eax, esi
shr eax, 4
and eax, 0xf0
sub eax, ecx
cdq
mov ecx, eax
mov eax, esi
and eax, 0xf
xor ecx, edx
shl eax, 4
sub eax, ebx
sub ecx, edx
cdq
xor eax, edx
sub eax, edx
mov edx, dword [esp + 0x34]
add ecx, eax
mov eax, esi
and eax, 0xf0
sub eax, edx
cdq
xor eax, edx
sub eax, edx
add ecx, eax
je 0x6162bb
cmp ecx, dword [esp + 0x20]
jge 0x6162aa
mov dword [esp + 0x20], ecx
mov dword [esp + 0x14], ebp
mov eax, dword [esp + 0x84]
inc ebp
add edi, 2
cmp ebp, eax
jl 0x616255
jmp 0x6162bf
mov dword [esp + 0x14], ebp
mov edi, dword [esp + 0x84]
mov eax, dword [esp + 0x24]
mov cl, byte [esp + 0x14]
mov byte [eax], cl
mov ecx, dword [esp + 0x28]
inc eax
inc ecx
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x60]
cmp ecx, eax
mov dword [esp + 0x28], ecx
jl 0x6161b0
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x64]
inc ecx
cmp ecx, edx
mov dword [esp + 0x10], ecx
jl 0x6161a2
lea ecx, [esp + 0x5c]
call fcn.004aaa00
mov ebx, dword [esp + 0x60]
lea eax, [edi + edi + 0xc]
imul ebx, dword [esp + 0x64]
add ebx, eax
mov dword [esp + 0x34], eax
push ebx
call fcn.0076d5a7
mov edx, dword [esp + 0x64]
mov esi, dword [esp + 0x1c]
mov ebp, eax
lea ecx, [edi + edi]
mov dword [ebp], edx
mov eax, dword [esp + 0x68]
mov edx, ecx
mov dword [ebp + 8], edi
lea edi, [ebp + 0xc]
mov dword [ebp + 4], eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov eax, dword [esp + 0x38]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x64]
mov esi, dword [esp + 0x30]
imul ecx, dword [esp + 0x68]
mov edx, ecx
lea edi, [eax + ebp]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x1c]
mov ecx, edx
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.0076d2d5
mov ecx, dword [esp + 0x34]
push ecx
call fcn.0076d2d5
mov edx, dword [esp + 0x28]
push edx
call fcn.0076d2d5
mov eax, dword [esp + 0x98]
push ebx
push str.Created_paletted_preview_of_size__d_bytes_n
mov dword [eax], ebx
call fcn.004068f0
add esp, 0x18
lea ecx, [esp + 0x5c]
call fcn.004aa160
pop esi
pop ebx
mov eax, ebp
pop edi
pop ebp
add esp, 0x70
ret 8