Function at 0x40c228
Capabilities:
Print debug messages

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffe88
mov ebx, edx
mov ebp, eax
lea esi, [esp + 0x34]
mov byte [esp], 0
mov dword [esp + 0x18], 0xf4240
mov dword [esp + 0x1c], 0
push 0
push 0x3e8
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
call fcn.00403b6c
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edx
push 0
push 5
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
call fcn.00403b6c
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edx
mov dword [esp + 0x28], 0x100000
mov dword [esp + 0x2c], 0
push 0
push 0x400
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
call fcn.00403b6c
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], edx
push 0
push 5
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
call fcn.00403b6c
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], edx
mov byte [esp + 0x20], 0
test bh, 0x80
je 0x40c348
mov dword [esp + 4], 0xf
mov ecx, 0x41581c
mov edi, ecx
cmp dword [edi + 4], 0
jne 0x40c2ec
cmp dword [edi], 0
je 0x40c337
cmp dword [edi + 0x24], 0x6e7a6674
jne 0x40c337
push 0x144
push esi
call sub.ntdll.dll_RtlZeroMemory
mov eax, esi
mov edx, dword [esp + 4]
call fcn.0040bdbc
mov eax, dword [esi + 0x138]
mov dword [ebp + 0x19], eax
mov eax, dword [esi + 0x13c]
mov dword [ebp + 0x1d], eax
mov al, byte [esi + 0x30]
mov byte [esp + 0x20], al
mov eax, dword [esi + 0x30]
push eax
push 0x40c528
call sub.ntdll.dll_DbgPrint
add esp, 8
jmp 0x40c348
dec dword [esp + 4]
sub ecx, 0x228
cmp dword [esp + 4], 0xffffffff
jne 0x40c2df
mov dword [esp + 4], 0xf
mov dword [esp + 0x30], 0x41581c
mov eax, dword [esp + 0x30]
mov edi, eax
cmp dword [edi + 4], 0
jne 0x40c36d
cmp dword [edi], 0
je 0x40c500
cmp dword [edi + 0x24], 0x6e7a6674
je 0x40c500
mov eax, dword [edi + 0x14]
cmp eax, 2
je 0x40c500
cmp eax, 3
je 0x40c500
cmp eax, 7
je 0x40c500
cmp dword [edi + 8], 0xc
je 0x40c3b5
mov eax, dword [esp + 4]
push eax
push 0x40c548
call sub.ntdll.dll_DbgPrint
add esp, 8
jmp 0x40c500
mov eax, dword [edi]
mov edx, dword [edi + 4]
cmp edx, dword [esp + 0x2c]
jne 0x40c3c8
cmp eax, dword [esp + 0x28]
ja 0x40c3e4
jmp 0x40c3ca
jg 0x40c3e4
mov eax, dword [edi]
push eax
mov eax, dword [esp + 8]
push eax
push 0x40c56c
call sub.ntdll.dll_DbgPrint
add esp, 0xc
jmp 0x40c500
xor esi, esi
mov eax, esi
shl eax, 2
lea ebx, [edi + eax*8 + 0x28]
cmp dword [ebx + 0xc], 0
jne 0x40c3fb
cmp dword [ebx + 8], 0
je 0x40c42b
cmp dword [ebx + 0xc], 0
jne 0x40c40c
cmp dword [ebx + 8], 0xc800000
ja 0x40c40e
jmp 0x40c42b
jle 0x40c42b
mov al, byte [ebx + 0x19]
test al, al
je 0x40c422
cmp byte [ebp + 0x25], 0
jne 0x40c422
mov byte [ebp + 0x25], al
mov byte [ebp + 0x26], 0
mov edx, ebx
mov eax, edi
call fcn.0040eccc
inc esi
cmp esi, 0x10
jne 0x40c3e6
mov esi, 0xf
mov eax, esi
shl eax, 2
lea ebx, [edi + eax*8 + 0x28]
cmp dword [ebx + 0xc], 0
jne 0x40c44f
cmp dword [ebx + 8], 0
je 0x40c4f6
cmp byte [esp + 0x20], 0
je 0x40c478
mov al, byte [ebx + 0x19]
cmp al, byte [esp + 0x20]
je 0x40c478
mov eax, dword [ebx + 0x19]
push eax
push esi
mov eax, dword [esp + 0xc]
push eax
push 0x40c598
call sub.ntdll.dll_DbgPrint
add esp, 0x10
jmp 0x40c4f6
cmp byte [ebx + 0x19], 0
je 0x40c4f6
cmp byte [ebx + 0x18], 7
jne 0x40c4f6
mov eax, dword [ebx + 8]
mov edx, dword [ebx + 0xc]
cmp edx, dword [esp + 0x1c]
jne 0x40c498
cmp eax, dword [esp + 0x18]
jbe 0x40c4f6
jmp 0x40c49a
jle 0x40c4f6
lea edx, [ebx + 0x19]
lea eax, [esp + 8]
call fcn.004081ac
lea eax, [esp + 8]
call fcn.00408300
push 0
lea ecx, [esp + 0xc]
mov edx, 0x40c5c8
mov eax, 0x40c5dc
call fcn.00408a10
mov eax, dword [esp + 4]
mov dword [ebp], eax
mov dword [ebp + 4], esi
mov al, byte [ebx + 0x19]
mov byte [ebp + 8], al
mov eax, dword [ebx]
mov dword [ebp + 9], eax
mov eax, dword [ebx + 4]
mov dword [ebp + 0xd], eax
mov eax, dword [ebx]
mov edx, dword [ebx + 4]
add eax, dword [ebx + 8]
adc edx, dword [ebx + 0xc]
mov dword [ebp + 0x11], eax
mov dword [ebp + 0x15], edx
mov byte [esp], 1
jmp 0x40c517
dec esi
cmp esi, 0xffffffff
jne 0x40c436
dec dword [esp + 4]
sub dword [esp + 0x30], 0x228
cmp dword [esp + 4], 0xffffffff
jne 0x40c358
mov al, byte [esp]
add esp, 0x178
pop ebp
pop edi
pop esi
pop ebx
ret