Function at 0x5b1b8f
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
push ebx
push esi
push edi
xor edi, edi
push 2
lea ecx, [ebp - 0x50]
mov dword [ebp - 8], edi
mov dword [ebp - 4], edi
mov dword [ebp - 0xc], edi
call fcn.005b1715
mov ebx, dword [ebp + 0x14]
mov esi, dword [ebp + 0x18]
mov eax, dword [esi + 0x18]
and ebx, 0xffffffaf
cmp eax, edi
seta cl
cmp eax, edi
movzx ecx, cl
mov dword [ebp + 0x14], ecx
jbe 0x5b1bea
xor eax, eax
cmp dword [esi + 0x20], edi
jbe 0x5b1bdc
mov al, byte [esi + 2]
and eax, 3
mov eax, dword [eax*4 + 0x65b51c]
cmp eax, 8
jne 0x5b1bea
sub ebx, 0x100
mov dword [ebp + 0x14], edi
lea eax, [ebp - 0x2c]
push eax
mov ecx, esi
call fcn.005b1810
push ebx
lea ecx, [ebp - 0x74]
call fcn.005b1715
push 9
mov esi, eax
pop ecx
lea edi, [ebp - 0x50]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x4c]
add eax, 0xfffffff4
xor edi, edi
cmp eax, edi
je 0x5b1d78
test al, 3
je 0x5b1c28
mov dword [ebp - 8], 0x8876086c
jmp 0x5b1d78
mov esi, eax
imul esi, dword [ebp + 0x10]
lea eax, [esi + 8]
push eax
mov dword [ebp - 8], eax
call fcn.005f54fb
pop ecx
mov ecx, eax
cmp ecx, edi
mov dword [ebp - 0xc], ecx
jne 0x5b1c4e
mov eax, 0x8007000e
jmp 0x5b1d84
mov edx, dword [ebp + 0xc]
shr esi, 2
lea eax, [ecx + 4]
mov dword [ecx], ebx
mov dword [eax], esi
mov esi, dword [ebp + 0x10]
add eax, 4
cmp esi, edi
jbe 0x5b1d24
mov dword [ebp + 0xc], esi
mov ecx, dword [ebp + 0x18]
add edx, 0xc
xor esi, esi
cmp dword [ecx + 0x1c], edi
jbe 0x5b1c89
mov ebx, dword [edx]
mov dword [eax], ebx
add eax, 4
add edx, 4
inc esi
cmp esi, dword [ecx + 0x1c]
jb 0x5b1c79
cmp dword [ecx + 8], edi
jbe 0x5b1c91
add edx, 0xc
cmp dword [ecx + 0x10], edi
jbe 0x5b1ca5
cmp dword [ebp - 0x40], edi
jbe 0x5b1ca2
mov esi, dword [edx]
mov dword [eax], esi
add eax, 4
add edx, 4
cmp dword [ecx + 0x14], edi
jbe 0x5b1cb4
mov esi, dword [edx]
mov dword [eax], esi
add eax, 4
add edx, 4
cmp dword [ebp + 0x14], edi
je 0x5b1cd9
mov ecx, dword [ebp - 0x2c]
mov ebx, ecx
shr ecx, 2
mov esi, edx
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 0x18]
add eax, ebx
add edx, ebx
xor edi, edi
jmp 0x5b1cdc
add edx, dword [ebp - 0x2c]
mov esi, dword [ecx + 0x20]
xor ecx, ecx
inc ecx
cmp esi, ecx
jbe 0x5b1d18
mov dword [ebp + 0x10], ecx
mov ecx, dword [ebp + ecx*4 - 0x2c]
mov ebx, ecx
shr ecx, 2
mov esi, edx
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 0x10]
mov esi, dword [ebp + ecx*4 - 0x2c]
add eax, esi
add edx, esi
mov esi, dword [ebp + 0x18]
inc ecx
cmp ecx, dword [esi + 0x20]
mov dword [ebp + 0x10], ecx
jb 0x5b1ce9
xor edi, edi
dec dword [ebp + 0xc]
jne 0x5b1c6c
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
mov edx, dword [eax]
lea esi, [ebp - 4]
push esi
push ecx
push dword [ebp - 8]
push edi
push edi
push 0x65b61c
push eax
call dword [edx + 0x10]
cmp eax, edi
mov dword [ebp - 8], eax
jge 0x5b1d4a
push str.Failed_to_create_x_file_data_object_
jmp 0x5b1d62
mov eax, dword [ebp + 0x1c]
push dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x20]
cmp eax, edi
mov dword [ebp - 8], eax
jge 0x5b1d68
push str.Failed_to_add_x_file_data_object_
call dword [0xdd38e8]
mov eax, dword [ebp - 4]
cmp eax, edi
je 0x5b1d78
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 4], edi
push dword [ebp - 0xc]
call fcn.005f54f0
mov eax, dword [ebp - 8]
pop ecx
pop edi
pop esi
pop ebx
leave
ret