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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100338b2
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x10048070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 4], 2
jge 0x10002f08
lea esi, [ebx + 0x8c]
lea edi, [ebx + 0x84]
mov eax, dword [esi]
mov ecx, esi
mov dword [ebp - 0x20], esi
call dword [eax]
mov byte [ebp - 0x1c], 1
mov dword [ebp - 4], 0
mov ecx, edi
mov eax, dword [edi]
call dword [eax]
mov ecx, dword [ebx + 0x50]
lea eax, [ecx + ecx*2]
cmp dword [ebx + eax*8 + 0x64], 0
jne 0x10002d31
xor eax, eax
test ecx, ecx
sete al
mov dword [ebx + 0x50], eax
mov ecx, dword [ebx + 0x50]
mov dword [ebp - 0x18], ecx
mov byte [ebp - 4], 2
mov ecx, edi
mov eax, dword [edi]
call dword [eax + 4]
mov eax, dword [ebp - 0x18]
mov byte [ebp - 4], 0
lea eax, [eax + eax*2]
mov edx, dword [ebx + eax*8 + 0x64]
lea eax, [ebx + eax*8]
mov dword [ebp - 0x10], eax
test edx, edx
je 0x10002efa
mov ecx, dword [ebx + 0x94]
add eax, 0x54
mov dword [ebp - 0x14], eax
test ecx, ecx
je 0x10002e14
cmp dword [eax + 0x14], 0x10
jb 0x10002d7a
mov eax, dword [eax]
push ecx
push 1
push edx
push eax
call fcn.1001d2b4
add esp, 0x10
test eax, eax
jne 0x10002df4
inc dword [ebx + 4]
mov ecx, esi
mov eax, dword [esi]
call dword [eax]
mov eax, dword [ebx + 0x94]
test eax, eax
je 0x10002dbf
push eax
call fcn.10019dd1
add esp, 4
push dword [ebx + 0x94]
call fcn.10019ea0
add esp, 4
mov dword [ebx + 0x94], 0
mov byte [ebp - 4], 4
mov ecx, esi
mov eax, dword [esi]
call dword [eax + 4]
lea eax, [ebx + 0x30]
mov byte [ebp - 4], 0
cmp dword [eax + 0x14], 0x10
jb 0x10002dd9
mov eax, dword [eax]
push ecx
push dword [ebx + 0x9c]
mov ecx, ebx
push eax
call fcn.10001fe0
mov dword [ebp - 4], 5
jmp 0x10002ece
push dword [ebx + 0x94]
mov dword [ebx + 4], 0
call fcn.10019dd1
mov eax, dword [ebp - 0x10]
add esp, 4
mov eax, dword [eax + 0x64]
add dword [ebx + 0xc], eax
jmp 0x10002e36
cmp dword [eax + 0x14], 0x10
jb 0x10002e1c
mov eax, dword [eax]
push eax
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push dword [ebp - 0x10]
push 0x100415d4
call fcn.10001900
add esp, 8
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x14], 0x10
mov dword [eax + 0x10], 0
jb 0x10002e48
mov eax, dword [eax]
mov byte [eax], 0
mov eax, dword [ebx + 0xc]
cmp eax, dword [ebx + 0x10]
jb 0x10002ea9
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, dword [ebx + 0x94]
test eax, eax
je 0x10002e84
push eax
call fcn.10019dd1
add esp, 4
push dword [ebx + 0x94]
call fcn.10019ea0
add esp, 4
mov dword [ebx + 0x94], 0
mov byte [ebp - 4], 6
mov ecx, esi
mov eax, dword [esi]
call dword [eax + 4]
lea eax, [ebx + 0x30]
mov byte [ebp - 4], 0
cmp dword [eax + 0x14], 0x10
jb 0x10002e9e
mov eax, dword [eax]
push ecx
push 0
push eax
mov ecx, ebx
call fcn.10001fe0
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov ecx, dword [ebp - 0x18]
xor eax, eax
test ecx, ecx
sete al
mov dword [ebx + 0x50], eax
mov byte [ebp - 4], 7
mov ecx, edi
mov eax, dword [edi]
call dword [eax + 4]
mov dword [ebp - 4], 8
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
cmp dword [ebx + 4], 2
jl 0x10002d00
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 3
mov ecx, esi
mov eax, dword [esi]
call dword [eax + 4]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret