Function at 0x1004801a
Capabilities:
Print debug messages

Disassembly:
push ebp
lea ebp, [esp - 0x60]
sub esp, 0xb4
push ebx
mov ebx, dword [ebp + 0x74]
push esi
mov esi, dword [ebp + 0x78]
mov eax, dword [esi + 0x18]
push edi
xor edi, edi
and ebx, 0xffffffaf
cmp eax, edi
seta cl
cmp eax, edi
movzx ecx, cl
mov dword [ebp + 0x5c], edi
mov dword [ebp + 0x58], edi
mov dword [ebp + 0x54], edi
mov dword [ebp + 0x74], ecx
jbe 0x10048075
push edi
mov ecx, esi
call fcn.10047c37
cmp eax, 8
jne 0x10048075
mov eax, ebx
and eax, 0xffff
shr ebx, 2
sub eax, 0x100
and ebx, 0x3fffc000
or ebx, eax
mov dword [ebp + 0x74], edi
lea eax, [ebp + 0x2c]
push eax
mov ecx, esi
call fcn.10047c5b
push ebx
lea ecx, [ebp - 0x54]
call fcn.10047b6f
push 0x10
mov esi, eax
pop ecx
lea edi, [ebp - 0x14]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff4
xor edi, edi
cmp eax, edi
je 0x10048203
test al, 3
je 0x100480b3
mov dword [ebp + 0x5c], 0x8876086c
jmp 0x10048203
mov esi, eax
imul esi, dword [ebp + 0x70]
lea eax, [esi + 8]
push eax
mov dword [ebp + 0x4c], eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov ecx, eax
cmp ecx, edi
mov dword [ebp + 0x54], ecx
jne 0x100480d9
mov eax, 0x8007000e
jmp 0x1004820f
mov edx, dword [ebp + 0x6c]
shr esi, 2
lea eax, [ecx + 4]
mov dword [ecx], ebx
mov dword [eax], esi
mov esi, dword [ebp + 0x70]
add eax, 4
cmp esi, edi
jbe 0x100481af
mov dword [ebp + 0x50], esi
mov ecx, dword [ebp + 0x78]
add edx, 0xc
xor esi, esi
cmp dword [ecx + 0x38], edi
jbe 0x10048114
mov ebx, dword [edx]
mov dword [eax], ebx
add eax, 4
add edx, 4
inc esi
cmp esi, dword [ecx + 0x38]
jb 0x10048104
cmp dword [ecx + 8], edi
jbe 0x1004811c
add edx, 0xc
cmp dword [ecx + 0x10], edi
jbe 0x10048130
cmp dword [ebp - 4], edi
jbe 0x1004812d
mov esi, dword [edx]
mov dword [eax], esi
add eax, 4
add edx, 4
cmp dword [ecx + 0x14], edi
jbe 0x1004813f
mov esi, dword [edx]
mov dword [eax], esi
add eax, 4
add edx, 4
cmp dword [ebp + 0x74], edi
je 0x10048164
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 + 0x78]
add eax, ebx
add edx, ebx
xor edi, edi
jmp 0x10048167
add edx, dword [ebp + 0x2c]
mov esi, dword [ecx + 0x3c]
xor ecx, ecx
inc ecx
cmp esi, ecx
jbe 0x100481a3
mov dword [ebp + 0x5c], 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 + 0x5c]
mov esi, dword [ebp + ecx*4 + 0x2c]
add eax, esi
add edx, esi
mov esi, dword [ebp + 0x78]
inc ecx
cmp ecx, dword [esi + 0x3c]
mov dword [ebp + 0x5c], ecx
jb 0x10048174
xor edi, edi
dec dword [ebp + 0x50]
jne 0x100480f7
mov ecx, dword [ebp + 0x54]
mov eax, dword [ebp + 0x68]
mov edx, dword [eax]
lea esi, [ebp + 0x58]
push esi
push ecx
push dword [ebp + 0x4c]
push edi
push edi
push 0x101eedd0
push eax
call dword [edx + 0x10]
cmp eax, edi
mov dword [ebp + 0x5c], eax
jge 0x100481d5
push str.Failed_to_create_x_file_data_object_
jmp 0x100481ed
mov eax, dword [ebp + 0x7c]
push dword [ebp + 0x58]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x20]
cmp eax, edi
mov dword [ebp + 0x5c], eax
jge 0x100481f3
push str.Failed_to_add_x_file_data_object_
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [ebp + 0x58]
cmp eax, edi
je 0x10048203
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp + 0x58], edi
push dword [ebp + 0x54]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [ebp + 0x5c]
pop ecx
pop edi
pop esi
pop ebx
add ebp, 0x60
leave
ret