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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008a3d8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x100c90c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ecx, dword [edi + 0x14]
mov ebx, dword [ebp + 8]
test ecx, ecx
je 0x10042c3a
push ebx
call fcn.1006bda0
push dword [ebx + 0xc]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [edi + 0x50], 0
jne 0x10042f6a
mov dword [ebp - 0x34], vtable.CStringBufferW.0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 4], 0
cmp dword [edi + 0x54], 0
je 0x10042d01
mov eax, dword [edi + 0x28]
test eax, eax
je 0x10042ca2
push dword [edi + 0x20]
lea ecx, [ebp - 0x34]
push eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], 0
call fcn.1003ea90
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov byte [ebp - 4], 1
push ecx
push eax
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x24], vtable.CStringBufferW.0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
call fcn.1003fba0
mov byte [ebp - 4], 2
mov esi, dword [ebp - 0x18]
push esi
push 0x100b3118
lea ecx, [ebp - 0x34]
call fcn.1003f290
mov byte [ebp - 4], 0
test esi, esi
je 0x10042e89
push esi
call fcn.1006eaef
add esp, 4
jmp 0x10042e89
mov eax, dword [edi + 0xcc]
cmp eax, 0x3e8
jge 0x10042d26
inc eax
mov dword [edi + 0xcc], eax
lea eax, [edi + 0x2c]
push eax
lea ecx, [ebp - 0x34]
call fcn.1003ecf0
jmp 0x10042e89
mov eax, dword [edi + 0x40]
inc dword [edi + 0xd0]
add eax, 0xfffffffc
push eax
push 0
lea eax, [ebp - 0x24]
push eax
lea ecx, [edi + 0x3c]
mov dword [edi + 0xcc], 1
call fcn.1003f540
push eax
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 3
call fcn.1003ecf0
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0
call fcn.10022960
cmp dword [ebp - 0x28], 0
lea ecx, [ebp - 0x34]
jne 0x10042d7b
push 1
push 0x100b30e8
call fcn.1003ea90
jmp 0x10042daa
mov eax, dword [ebp - 0x30]
inc eax
push eax
call fcn.1003f120
test eax, eax
je 0x10042daa
mov esi, dword [ebp - 0x30]
mov eax, dword [ebp - 0x2c]
sub eax, esi
push 0x100b30e8
push eax
mov eax, dword [ebp - 0x28]
lea eax, [eax + esi*2]
push eax
call fcn.1006fdc7
add esp, 0xc
inc esi
mov dword [ebp - 0x30], esi
push dword [edi + 0xd0]
lea ecx, [ebp - 0x34]
call fcn.1003ed80
cmp dword [ebp - 0x28], 0
lea ecx, [ebp - 0x34]
jne 0x10042dcf
push 1
push 0x1009c638
call fcn.1003ea90
jmp 0x10042dfd
mov eax, dword [ebp - 0x30]
inc eax
push eax
call fcn.1003f120
test eax, eax
je 0x10042dfd
mov ecx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x2c]
sub eax, ecx
push 0x1009c638
push eax
mov eax, dword [ebp - 0x28]
lea eax, [eax + ecx*2]
push eax
call fcn.1006fdc7
add esp, 0xc
inc dword [ebp - 0x30]
mov eax, dword [edi + 0x40]
push 4
add eax, 0xfffffffc
push eax
lea eax, [ebp - 0x24]
push eax
lea ecx, [edi + 0x3c]
call fcn.1003f540
mov byte [ebp - 4], 4
mov ebx, dword [eax + 0xc]
test ebx, ebx
je 0x10042e6e
mov esi, ebx
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x10042e22
sub esi, ecx
sar esi, 1
cmp dword [ebp - 0x28], 0
lea ecx, [ebp - 0x34]
jne 0x10042e43
push esi
push ebx
call fcn.1003ea90
jmp 0x10042e6e
mov eax, dword [ebp - 0x30]
add eax, esi
push eax
call fcn.1003f120
test eax, eax
je 0x10042e6e
mov ecx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x2c]
sub eax, ecx
push ebx
push eax
mov eax, dword [ebp - 0x28]
lea eax, [eax + ecx*2]
push eax
call fcn.1006fdc7
add esp, 0xc
add dword [ebp - 0x30], esi
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0
call fcn.10022960
lea eax, [ebp - 0x34]
push eax
lea ecx, [edi + 0x2c]
call fcn.1003ecf0
mov ebx, dword [ebp + 8]
mov esi, dword [ebp - 0x28]
test esi, esi
je 0x10042f6a
cmp dword [ebp - 0x30], 0
jne 0x10042ea0
push esi
jmp 0x10042f62
push ecx
lea eax, [ebp - 0x20]
push eax
mov ecx, ebx
call fcn.1003e7d0
lea eax, [edi + 0x64]
mov dword [ebp + 8], eax
test eax, eax
je 0x10042ec0
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [ebp - 0x28]
push 0x100b312c
lea eax, [ebp - 0x14]
push esi
push eax
mov dword [ebp - 0x14], 0
call fcn.100708d7
mov eax, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x18]
add esp, 0xc
test eax, eax
je 0x10042f4a
push 2
push 0
push eax
call fcn.10070a75
add esp, 0xc
push dword [ebp - 0x14]
call fcn.10070e4d
mov ecx, dword [ebp - 0x14]
add esp, 4
test ecx, ecx
je 0x10042f4a
cmp eax, dword [edi + 0x4c]
jl 0x10042f2f
push ecx
call fcn.10070f21
add esp, 4
lea eax, [ebp - 0x14]
push 0x100b3134
push esi
push eax
mov dword [ebp - 0x14], 0
call fcn.100708d7
mov ecx, dword [ebp - 0x14]
add esp, 0xc
test ecx, ecx
je 0x10042f4a
push ecx
push 1
push dword [ebp - 0x20]
push ebx
call fcn.100710ef
push dword [ebp - 0x14]
call fcn.10070f21
add esp, 0x14
lea ecx, [ebp + 8]
call fcn.10046c80
test ebx, ebx
je 0x10042f5f
push ebx
call fcn.1006dae9
add esp, 4
push dword [ebp - 0x28]
call fcn.1006eaef
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4