Function at 0x1004771d
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
xor esi, esi
push edi
push 0x2c
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 4], esi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov edi, eax
cmp edi, esi
pop ecx
mov dword [ebp - 0x10], edi
jne 0x10047756
push str.Out_of_memory_
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov esi, 0x8007000e
jmp 0x100478d3
mov ecx, dword [ebp - 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
mov esi, ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edx, dword [ebx + 0x40]
push 4
lea eax, [ecx + 0x10]
mov dword [eax], edx
mov esi, dword [ebx + 0x20]
pop edx
add eax, edx
mov dword [eax], esi
mov esi, dword [ebx + 0x24]
add eax, edx
mov dword [eax], esi
mov esi, dword [ebx + 0x28]
add eax, edx
mov dword [eax], esi
mov esi, dword [ebx + 0x30]
add eax, edx
mov dword [eax], esi
add eax, edx
mov edx, dword [ebx + 0x34]
lea esi, [ebp - 8]
push esi
push ecx
push 0x2c
mov dword [eax], edx
mov edx, dword [ebx + 0x38]
push 0
push 0
mov dword [eax + 4], edx
mov eax, dword [ebp + 8]
mov edx, dword [eax]
push 0x101eece0
push eax
call dword [edx + 0x10]
mov esi, eax
test esi, esi
jl 0x100478ae
mov eax, dword [ebp + 0x18]
push dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x20]
mov esi, eax
test esi, esi
jl 0x100478c7
mov edi, dword [ebx + 0x44]
test edi, edi
je 0x100478d2
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100477e0
sub eax, edx
cmp dword [ebp + 0x10], 1
lea esi, [eax + 1]
jne 0x10047869
mov ecx, edi
xor edx, edx
jmp 0x100477fe
cmp al, 0x5c
jne 0x100477fd
inc edx
inc ecx
mov al, byte [ecx]
test al, al
jne 0x100477f8
add edx, esi
push edx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
test eax, eax
pop ecx
mov dword [ebp - 4], eax
jne 0x1004781e
mov esi, 0x8007000e
jmp 0x100478d2
push 8
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
test eax, eax
pop ecx
je 0x10047839
push dword [ebp + 0x14]
mov ecx, eax
push dword [ebp - 4]
call fcn.100476e1
jmp 0x1004783b
xor eax, eax
test eax, eax
jne 0x1004784a
push dword [ebp - 4]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
jmp 0x10047814
mov ecx, dword [ebp - 4]
mov ebx, dword [ebx + 0x44]
jmp 0x1004785f
mov byte [ecx], al
cmp byte [ebx], 0x5c
jne 0x1004785d
inc ecx
mov byte [ecx], 0x5c
inc ebx
inc ecx
mov al, byte [ebx]
test al, al
jne 0x10047852
and byte [ecx], al
jmp 0x1004788c
push esi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov edi, eax
test edi, edi
pop ecx
mov dword [ebp - 4], edi
je 0x10047814
mov ecx, esi
mov esi, dword [ebx + 0x44]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
lea edx, [ebp - 0xc]
push edx
lea edx, [ebp - 4]
push edx
push 4
push 0
push 0
push 0x101eed40
push eax
call dword [ecx + 0x10]
mov esi, eax
test esi, esi
jge 0x100478b5
push str.Failed_to_create_x_file_data_object_
jmp 0x100478cc
mov eax, dword [ebp - 8]
push dword [ebp - 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x20]
mov esi, eax
test esi, esi
jge 0x100478d2
push str.Failed_to_add_x_file_data_object_
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop ebx
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x100478e4
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
and dword [ebp - 0xc], 0
mov eax, dword [ebp - 8]
test eax, eax
je 0x100478f5
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
and dword [ebp - 8], 0
push dword [ebp - 0x10]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
pop edi
mov eax, esi
pop esi
leave
ret