Function at 0x487cbd
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xec
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
xor edi, edi
push esi
lea ecx, [ebp - 0x6c]
mov dword [ebp - 4], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
call fcn.0045f08b
cmp esi, edi
je 0x487e9f
and esi, 0xffffffaf
cmp dword [ebp - 0x54], edi
mov ebx, esi
seta al
cmp dword [ebp - 0x54], edi
movzx eax, al
mov dword [ebp + 0x14], eax
jbe 0x487d28
push edi
lea ecx, [ebp - 0x6c]
call fcn.0045f160
cmp eax, 8
jne 0x487d28
mov eax, ebx
and eax, 0xffff
shr ebx, 2
sub eax, 0x100
and ebx, 0x3fffc000
or ebx, eax
mov dword [ebp + 0x14], edi
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x6c]
call fcn.004878a2
push ebx
lea ecx, [ebp - 0xec]
call fcn.0045f08b
push 0x10
mov esi, eax
pop ecx
lea edi, [ebp - 0xac]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0xa8]
add eax, 0xfffffff4
xor edi, edi
cmp eax, edi
je 0x487e9f
test al, 3
je 0x487d70
mov dword [ebp - 4], 0x8876086c
jmp 0x487e9f
mov esi, eax
imul esi, dword [ebp + 0x10]
lea eax, [esi + 8]
push eax
mov dword [ebp - 4], eax
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov ecx, eax
cmp ecx, edi
mov dword [ebp - 8], ecx
jne 0x487d96
mov eax, 0x8007000e
jmp 0x487eab
mov edx, dword [ebp + 0xc]
shr esi, 2
lea eax, [ecx + 4]
mov dword [ecx], ebx
push 4
mov dword [eax], esi
mov esi, dword [ebp + 0x10]
pop ebx
add eax, ebx
cmp esi, edi
jbe 0x487e65
mov dword [ebp + 0xc], esi
jmp 0x487dbb
push 4
pop ebx
mov ecx, dword [ebp - 0x34]
add edx, 0xc
cmp ecx, edi
jbe 0x487dd0
mov esi, dword [edx]
mov dword [eax], esi
add eax, ebx
add edx, ebx
dec ecx
jne 0x487dc5
cmp dword [ebp - 0x64], edi
jbe 0x487dd8
add edx, 0xc
cmp dword [ebp - 0x5c], edi
jbe 0x487ded
cmp dword [ebp - 0x9c], edi
jbe 0x487deb
mov ecx, dword [edx]
mov dword [eax], ecx
add eax, ebx
add edx, ebx
cmp dword [ebp - 0x58], edi
jbe 0x487dfa
mov ecx, dword [edx]
mov dword [eax], ecx
add eax, ebx
add edx, ebx
cmp dword [ebp + 0x14], edi
je 0x487e1c
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]
add eax, ebx
add edx, ebx
xor edi, edi
jmp 0x487e1f
add edx, dword [ebp - 0x2c]
xor ecx, ecx
inc ecx
cmp dword [ebp - 0x30], ecx
jbe 0x487e59
mov dword [ebp + 0x10], ecx
mov ecx, dword [ebp + 0x10]
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 esi, dword [ebp + 0x10]
mov ecx, dword [ebp + esi*4 - 0x2c]
add eax, ecx
add edx, ecx
inc esi
cmp esi, dword [ebp - 0x30]
mov dword [ebp + 0x10], esi
jb 0x487e2a
xor edi, edi
dec dword [ebp + 0xc]
jne 0x487db8
mov ecx, dword [ebp - 8]
mov eax, dword [ebp + 0x18]
mov edx, dword [eax]
lea esi, [ebp - 0xc]
push esi
push ecx
push dword [ebp - 4]
push edi
push edi
push 0x401960
push eax
call dword [edx + 0x1c]
cmp eax, edi
mov dword [ebp - 4], eax
jge 0x487e8f
push 0x405e40
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [ebp - 0xc]
cmp eax, edi
je 0x487e9f
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 0xc], edi
push dword [ebp - 8]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
mov eax, dword [ebp - 4]
pop ecx
pop edi
pop esi
pop ebx
leave
ret 0x14