Function at 0x4caa7c
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffbc
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x40], edx
mov dword [ebp - 4], edx
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], edx
mov esi, eax
xor eax, eax
push ebp
push 0x4caccf
push dword fs:[eax]
mov dword fs:[eax], esp
call sub.kernel32.dll_GetCurrentThreadId_1
mov ebx, eax
mov eax, dword [0x595c70]
cmp dword [eax], 0
jne 0x4caacf
mov eax, dword [0x595c70]
mov dword [eax], ebx
lea eax, [ebp - 8]
mov edx, 0x4cace8
call fcn.00408050
jmp 0x4caaf1
mov eax, dword [0x595c70]
cmp ebx, dword [eax]
jne 0x4caae7
lea eax, [ebp - 8]
mov edx, 0x4cace8
call fcn.00408050
jmp 0x4caaf1
lea edx, [ebp - 8]
mov eax, ebx
call fcn.00441c1c
cmp dword [0x69bef4], 0
jne 0x4cab4a
cmp dword [0x69bef0], 0
jne 0x4cab4a
call fcn.004db8f8
push edx
push eax
mov eax, 0x69bef0
call fcn.004caa64
mov eax, dword [0x69bef0]
mov dword [0x69bef8], eax
mov eax, dword [0x69bef4]
mov dword [0x69befc], eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
jmp 0x4cabb3
call fcn.004db8f8
push edx
push eax
lea eax, [ebp - 0x28]
call fcn.004caa64
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x24]
sub eax, dword [0x69bef0]
sbb edx, dword [0x69bef4]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x24]
sub eax, dword [0x69bef8]
sbb edx, dword [0x69befc]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], edx
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x28]
mov dword [0x69bef8], eax
mov eax, dword [ebp - 0x24]
mov dword [0x69befc], eax
push 0x4cad00
push dword [ebp - 8]
push 0x4cad14
push dword [ebp - 0x14]
push dword [ebp - 0x18]
lea eax, [ebp - 0x3c]
call fcn.00441c54
push dword [ebp - 0x3c]
push 0x4cad28
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
lea eax, [ebp - 0x40]
call fcn.00441c54
push dword [ebp - 0x40]
push 0x4cad3c
lea eax, [ebp - 0xc]
mov edx, 7
call fcn.00408c48
mov edx, dword [ebp - 0xc]
mov eax, edx
test eax, eax
je 0x4cac07
sub eax, 4
mov eax, dword [eax]
cmp eax, 0x19
jge 0x4cac40
mov ebx, edx
test ebx, ebx
je 0x4cac17
sub ebx, 4
mov ebx, dword [ebx]
push dword [ebp - 0xc]
lea ecx, [ebp - 0x44]
mov edx, 0x19
sub edx, ebx
mov ax, 0x20
call fcn.0040908c
push dword [ebp - 0x44]
push esi
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00408c48
jmp 0x4cac4a
lea eax, [ebp - 0xc]
mov edx, esi
call fcn.00408b68
cmp dword [0x69beec], 0
je 0x4cac99
lea eax, [ebp - 4]
mov ecx, 0x4cad54
mov edx, dword [ebp - 0xc]
call fcn.00408bc0
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x4cac6f
sub ebx, 4
mov ebx, dword [ebx]
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, ebx
add eax, eax
test eax, eax
jns 0x4cac82
call fcn.00405fc0
push eax
mov eax, dword [ebp - 4]
call fcn.0040895c
push eax
mov eax, dword [0x69beec]
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x4caca7
mov eax, dword [ebp - 0xc]
call fcn.0040895c
push eax
call sub.kernel32.dll_OutputDebugStringW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4cacd6
lea eax, [ebp - 0x44]
mov edx, 3
call fcn.00407c88
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00407c88
ret