Function at 0x5a4e36
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
and dword [ebp - 4], 0
and dword [ebp - 0xc], 0
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
lea edi, [esi*4 + 8]
push edi
mov dword [ebp - 0x14], 1
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
mov ebx, eax
test ebx, ebx
pop ecx
mov dword [ebp - 0x18], ebx
jne 0x5a4e74
mov eax, 0x8007000e
jmp 0x5a50a4
mov eax, dword [ebp + 0x1c]
mov dword [ebx], eax
lea eax, [ebx + 4]
mov dword [eax], esi
add eax, 4
xor ecx, ecx
test esi, esi
jbe 0x5a4e97
mov edx, dword [ebp + 0xc]
mov edx, dword [edx + ecx*4]
mov dword [eax], edx
add eax, 4
inc ecx
cmp ecx, esi
jb 0x5a4e87
mov eax, dword [ebp + 0x28]
mov ecx, dword [eax]
lea edx, [ebp - 4]
push edx
push ebx
push edi
push 0
push 0
push 0x406598
push eax
call dword [ecx + 0x1c]
test eax, eax
mov dword [ebp + 0xc], eax
jge 0x5a4ec6
push 0x40660c
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x5a5080
cmp dword [ebp + 0x14], 0
jne 0x5a502f
mov eax, dword [ebp + 0x1c]
and dword [ebp - 0x14], 0
xor ecx, ecx
push 0x48
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
test eax, eax
pop ecx
mov dword [ebp - 0xc], eax
jne 0x5a4eff
mov dword [ebp + 0xc], 0x8007000e
jmp 0x5a5080
mov esi, dword [ebp + 0x1c]
mov ecx, esi
imul ecx, ecx, 0x48
push ecx
push 0
push eax
mov dword [ebp + 0x14], eax
call sub.msvcrt.dll_memset
add esp, 0xc
test esi, esi
jbe 0x5a502f
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp + 0x18]
add eax, 0x30
mov dword [ebp + 0x10], eax
add edx, 4
mov dword [ebp - 0x10], esi
xor eax, eax
cmp dword [edx - 4], eax
jne 0x5a501f
cmp dword [edx], eax
mov dword [ebp - 8], eax
jbe 0x5a501f
mov dword [ebp + 0x28], eax
mov ecx, dword [ebp + 0x28]
mov eax, dword [edx + 4]
add eax, ecx
mov ecx, dword [eax + 4]
cmp ecx, 2
jne 0x5a4fef
cmp dword [eax + 8], 0x10
jne 0x5a4fc7
mov esi, dword [eax]
push 8
mov edi, 0x40653c
pop ecx
xor ebx, ebx
repe cmpsb byte [esi], byte es:[edi]
je 0x5a4f7b
mov edi, dword [ebp + 0x10]
add edi, 0xffffffe0
jmp 0x5a4fbe
mov esi, dword [eax]
push 9
mov edi, 0x406544
pop ecx
xor ebx, ebx
repe cmpsb byte [esi], byte es:[edi]
je 0x5a4f90
mov edi, dword [ebp + 0x10]
jmp 0x5a4fbe
mov esi, dword [eax]
push 8
mov edi, 0x46260c
pop ecx
xor ebx, ebx
repe cmpsb byte [esi], byte es:[edi]
je 0x5a4fa8
mov edi, dword [ebp + 0x10]
add edi, 0xffffffd0
jmp 0x5a4fbe
mov esi, dword [eax]
push 9
mov edi, 0x462600
pop ecx
xor ebx, ebx
repe cmpsb byte [esi], byte es:[edi]
je 0x5a500d
mov edi, dword [ebp + 0x10]
add edi, 0xfffffff0
mov esi, dword [eax + 0xc]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
jmp 0x5a500d
cmp ecx, 2
jne 0x5a4fef
cmp dword [eax + 8], 4
jne 0x5a4fef
mov esi, dword [eax]
push 6
mov edi, 0x406550
pop ecx
xor ebx, ebx
repe cmpsb byte [esi], byte es:[edi]
je 0x5a500d
mov eax, dword [eax + 0xc]
fld dword [eax]
mov eax, dword [ebp + 0x10]
fstp dword [eax + 0x10]
jmp 0x5a500d
cmp ecx, 1
jne 0x5a500d
mov esi, dword [eax]
push 9
mov edi, 0x406644
pop ecx
xor ebx, ebx
repe cmpsb byte [esi], byte es:[edi]
je 0x5a500d
mov eax, dword [eax + 0xc]
mov ecx, dword [ebp + 0x10]
mov dword [ecx + 0x14], eax
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
add dword [ebp + 0x28], 0x10
cmp eax, dword [edx]
jb 0x5a4f49
add dword [ebp + 0x10], 0x48
add edx, 0xc
dec dword [ebp - 0x10]
jne 0x5a4f30
xor ebx, ebx
cmp dword [ebp + 0x1c], ebx
jbe 0x5a507d
mov esi, dword [ebp + 0x14]
mov edi, dword [ebp + 0x18]
xor eax, eax
cmp dword [ebp - 0x14], eax
je 0x5a504e
mov ecx, dword [ebp + 0x18]
cmp ecx, eax
je 0x5a504e
cmp dword [ecx], eax
je 0x5a5057
mov eax, dword [ebp + 0x18]
neg eax
sbb eax, eax
and eax, edi
push dword [ebp - 4]
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push eax
push esi
push dword [ebp + 8]
call fcn.005a4b9f
test eax, eax
mov dword [ebp + 0xc], eax
jl 0x5a507d
inc ebx
add edi, 0xc
add esi, 0x48
cmp ebx, dword [ebp + 0x1c]
jb 0x5a503c
mov ebx, dword [ebp - 0x18]
push dword [ebp - 0xc]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
mov eax, dword [ebp - 4]
test eax, eax
pop ecx
je 0x5a509a
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
and dword [ebp - 4], 0
push ebx
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
mov eax, dword [ebp + 0xc]
pop ecx
pop edi
pop esi
pop ebx
leave
ret 0x24