Function at 0x58af97
Capabilities:
Print debug messages

Disassembly:
push ebp
lea ebp, [esp - 0x64]
sub esp, 0xec
push ebx
push esi
mov esi, dword [ebp + 0x78]
push edi
xor edi, edi
push esi
lea ecx, [ebp - 8]
mov dword [ebp + 0x60], edi
mov dword [ebp + 0x5c], edi
mov dword [ebp + 0x58], edi
call fcn.00566d23
cmp esi, edi
je 0x58b18a
and esi, 0xffffffaf
cmp dword [ebp + 0x10], edi
mov ebx, esi
seta al
cmp dword [ebp + 0x10], edi
movzx eax, al
mov dword [ebp + 0x78], eax
jbe 0x58b002
push edi
lea ecx, [ebp - 8]
call fcn.00566dee
cmp eax, 8
jne 0x58b002
mov eax, ebx
and eax, 0xffff
shr ebx, 2
sub eax, 0x100
and ebx, 0x3fffc000
or ebx, eax
mov dword [ebp + 0x78], edi
lea eax, [ebp + 0x38]
push eax
lea ecx, [ebp - 8]
call fcn.0058a74e
push ebx
lea ecx, [ebp - 0x88]
call fcn.00566d23
push 0x10
mov esi, eax
pop ecx
lea edi, [ebp - 0x48]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x44]
add eax, 0xfffffff4
xor edi, edi
cmp eax, edi
je 0x58b18a
test al, 3
je 0x58b044
mov dword [ebp + 0x60], 0x8876086c
jmp 0x58b18a
mov esi, eax
imul esi, dword [ebp + 0x74]
lea eax, [esi + 8]
push eax
mov dword [ebp + 0x60], eax
call fcn.0064adfa
pop ecx
mov ecx, eax
cmp ecx, edi
mov dword [ebp + 0x58], ecx
jne 0x58b06a
mov eax, 0x8007000e
jmp 0x58b196
mov edx, dword [ebp + 0x70]
shr esi, 2
lea eax, [ecx + 4]
mov dword [ecx], ebx
push 4
mov dword [eax], esi
mov esi, dword [ebp + 0x74]
pop ebx
add eax, ebx
cmp esi, edi
jbe 0x58b136
mov dword [ebp + 0x70], esi
jmp 0x58b08f
push 4
pop ebx
mov ecx, dword [ebp + 0x30]
add edx, 0xc
cmp ecx, edi
jbe 0x58b0a4
mov esi, dword [edx]
mov dword [eax], esi
add eax, ebx
add edx, ebx
dec ecx
jne 0x58b099
cmp dword [ebp], edi
jbe 0x58b0ac
add edx, 0xc
cmp dword [ebp + 8], edi
jbe 0x58b0be
cmp dword [ebp - 0x38], edi
jbe 0x58b0bc
mov ecx, dword [edx]
mov dword [eax], ecx
add eax, ebx
add edx, ebx
cmp dword [ebp + 0xc], edi
jbe 0x58b0cb
mov ecx, dword [edx]
mov dword [eax], ecx
add eax, ebx
add edx, ebx
cmp dword [ebp + 0x78], edi
je 0x58b0ed
mov ecx, dword [ebp + 0x38]
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]
add eax, ebx
add edx, ebx
xor edi, edi
jmp 0x58b0f0
add edx, dword [ebp + 0x38]
xor ecx, ecx
inc ecx
cmp dword [ebp + 0x34], ecx
jbe 0x58b12a
mov dword [ebp + 0x74], ecx
mov ecx, dword [ebp + 0x74]
mov ecx, dword [ebp + ecx*4 + 0x38]
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 esi, dword [ebp + 0x74]
mov ecx, dword [ebp + esi*4 + 0x38]
add eax, ecx
add edx, ecx
inc esi
cmp esi, dword [ebp + 0x34]
mov dword [ebp + 0x74], esi
jb 0x58b0fb
xor edi, edi
dec dword [ebp + 0x70]
jne 0x58b08c
mov ecx, dword [ebp + 0x58]
mov eax, dword [ebp + 0x6c]
mov edx, dword [eax]
lea esi, [ebp + 0x5c]
push esi
push ecx
push dword [ebp + 0x60]
push edi
push edi
push 0x6c77a8
push eax
call dword [edx + 0x10]
cmp eax, edi
mov dword [ebp + 0x60], eax
jge 0x58b15c
push str.Failed_to_create_x_file_data_object_
jmp 0x58b174
mov eax, dword [ebp + 0x7c]
push dword [ebp + 0x5c]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x20]
cmp eax, edi
mov dword [ebp + 0x60], eax
jge 0x58b17a
push str.Failed_to_add_x_file_data_object_
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [ebp + 0x5c]
cmp eax, edi
je 0x58b18a
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp + 0x5c], edi
push dword [ebp + 0x58]
call fcn.0064ae23
mov eax, dword [ebp + 0x60]
pop ecx
pop edi
pop esi
pop ebx
add ebp, 0x64
leave
ret 0x14