Function at 0x10005ca0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, edx
mov edx, dword [ebp + 8]
push ebx
mov edx, dword [edx]
push esi
mov esi, ecx
mov ecx, dword [eax]
push edi
mov dword [ebp - 8], eax
xor ebx, ebx
call fcn.10004460
mov ecx, dword [0x10011238]
push 0x40
push 0x200
mov edx, 0x10012128
call fcn.10003700
mov edx, eax
lea ecx, [ebp - 0x98]
call fcn.10004990
mov ecx, dword [0x100111f8]
push 0x126
push 0x10010038
push 0x200
mov edx, 0x10012128
call fcn.10003700
lea ecx, [ebp - 0x58]
push eax
lea eax, [ebp - 0x98]
push eax
call fcn.100031d0
mov al, byte [esi]
cmp al, 1
jne 0x10005d1f
mov byte [ebp - 0x3a], bl
jmp 0x10005d27
cmp al, 2
jne 0x10005d2d
mov byte [ebp - 0x3a], 1
mov word [ebp - 0x3c], 0x102
push 0x18
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov edi, eax
add esp, 4
mov dword [ebp - 0xc], eax
test edi, edi
je 0x10005d54
mov byte [edi + 4], bl
mov dword [edi + 8], ebx
mov dword [edi + 0x10], ebx
mov dword [edi + 0x14], ebx
mov dword [edi], vtable.CncRequest.0
jmp 0x10005d59
xor edi, edi
mov dword [ebp - 0xc], edi
inc esi
mov ecx, esi
call fcn.10004980
mov dword [ebp - 0x10], eax
push eax
call sub.MSVCRT.dll_malloc
add esp, 4
mov dword [ebp - 4], eax
test esi, esi
je 0x10005d81
push dword [ebp - 0x10]
push esi
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov eax, dword [edi + 0x10]
test eax, eax
je 0x10005d91
push eax
call sub.MSVCRT.dll_free
add esp, 4
mov eax, dword [ebp - 4]
mov dword [edi + 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [edi + 0x14], eax
xor esi, esi
nop
mov ecx, dword [0x1000f2a0]
inc ebx
xor edx, edx
lea ecx, [ecx + 1]
mov eax, ebx
div ecx
test edx, edx
jne 0x10005ded
mov eax, dword [0x10012a44]
test eax, eax
jne 0x10005dde
push 0x100
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
test eax, eax
je 0x10005dd7
mov ecx, eax
call fcn.100079d4
jmp 0x10005dd9
xor eax, eax
mov dword [0x10012a44], eax
mov eax, dword [eax + 0xf0]
push 0x493e0
call eax
xor ebx, ebx
call fcn.10003f80
mov ecx, eax
call fcn.100036d0
mov ecx, dword [0x10011200]
push 0x40
push 0x200
mov edx, 0x10012128
mov edi, eax
call fcn.10003700
mov edx, eax
lea ecx, [ebp - 0x98]
call fcn.10004990
mov edx, 0x10012128
push 0x200
mov ecx, edi
call fcn.10003700
lea ecx, [ebp - 0x98]
push ecx
movzx ecx, word [edi + 0x40]
push ecx
push eax
lea ecx, [ebp - 0x58]
call fcn.10002d40
mov edi, dword [ebp - 0xc]
lea ecx, [ebp - 0x58]
push edi
call fcn.10001dd0
mov dword [ebp - 4], eax
cmp eax, esi
je 0x10005e69
test esi, esi
je 0x10005e67
mov edx, dword [esi]
push 1
mov ecx, esi
call dword [edx]
mov eax, dword [ebp - 4]
mov esi, eax
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp byte [esi + 4], 0
jne 0x10005da0
mov eax, dword [edi]
push 1
mov ecx, edi
call dword [eax]
mov ebx, dword [ebp + 8]
mov eax, dword [esi + 0x14]
mov edi, dword [ebp - 8]
cmp eax, dword [ebx]
jbe 0x10005ea4
inc eax
mov dword [ebx], eax
mov ecx, dword [edi]
call fcn.10004370
mov ecx, dword [ebx]
call fcn.100042e0
mov dword [edi], eax
push dword [esi + 0x14]
mov edx, dword [esi + 0x10]
mov ecx, dword [edi]
call fcn.10004350
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
lea ecx, [ebp - 0x58]
call fcn.10003240
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4