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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ce4d5
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x514080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x28], ecx
mov al, byte [ecx + 0x18]
lea esi, [ecx + 0x18]
mov dword [ebp - 0x34], ecx
mov byte [ebp - 0x30], 0
test al, al
jne 0x42b147
push ecx
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov al, 1
xchg byte [esi], al
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 0
call fcn.00404710
mov edi, eax
test edi, edi
je 0x42b4c4
mov eax, dword [edi]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x4e1514]
mov ecx, edi
call esi
add eax, 0x10
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 2
call fcn.00404710
mov edi, eax
test edi, edi
je 0x42b4ce
mov eax, dword [edi]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x4e1514]
mov ecx, edi
call esi
add eax, 0x10
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x14]
push 2
push 0x4f0914
call fcn.004025d0
lea ecx, [ebp - 0x1c]
call fcn.0042b4e0
mov byte [ebp - 4], 6
mov edx, dword [eax]
test edx, edx
je 0x42b1ea
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42b1d1
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x14]
call fcn.004025d0
push 6
push str.__PID
lea ecx, [ebp - 0x14]
call fcn.004025d0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea ecx, [ebp - 0x14]
call fcn.0042aa20
mov esi, eax
push 8
push str.Thread
mov ecx, esi
call fcn.004025d0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
mov ecx, esi
call fcn.0042aa20
mov esi, eax
push 2
push 0x4f0940
mov ecx, esi
call fcn.004025d0
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
test edx, edx
je 0x42b25c
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42b244
sub ecx, edi
sar ecx, 1
push ecx
push edx
mov ecx, esi
call fcn.004025d0
mov ecx, dword [esi]
sub ecx, 0x10
call fcn.00402770
lea esi, [eax + 0x10]
mov dword [ebp - 0x20], esi
mov byte [ebp - 4], 9
or eax, 0xffffffff
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x42b297
mov ebx, dword [ecx]
push ecx
mov eax, dword [ebx]
mov edi, dword [eax + 4]
mov ecx, edi
call dword [0x4e1514]
mov ecx, ebx
call edi
mov byte [ebp - 4], 0xb
or eax, 0xffffffff
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x42b2c2
mov ebx, dword [ecx]
push ecx
mov eax, dword [ebx]
mov edi, dword [eax + 4]
mov ecx, edi
call dword [0x4e1514]
mov ecx, ebx
call edi
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x10]
call fcn.00409970
mov eax, dword [ebp - 0x10]
mov ecx, 0x78
sub ecx, dword [eax - 0xc]
mov eax, 1
test ecx, ecx
cmovle ecx, eax
push ecx
push 0x20
lea ecx, [ebp - 0x18]
call fcn.0040b670
mov byte [ebp - 4], 0xe
lea edx, [ebp - 0x18]
push 0x4f0948
lea ecx, [ebp - 0x24]
call fcn.0042c6c0
add esp, 4
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x10]
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
call fcn.004025d0
mov byte [ebp - 4], 0xe
or eax, 0xffffffff
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x42b342
mov ebx, dword [ecx]
push ecx
mov eax, dword [ebx]
mov edi, dword [eax + 4]
mov ecx, edi
call dword [0x4e1514]
mov ecx, ebx
call edi
mov eax, dword [ebp + 0x10]
lea ecx, [ebp - 0x10]
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
call fcn.004025d0
push 2
push 0x4efc7c
lea ecx, [ebp - 0x10]
call fcn.004025d0
mov byte [ebp - 4], 0xb
or eax, 0xffffffff
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x42b38d
mov ebx, dword [ecx]
push ecx
mov eax, dword [ebx]
mov edi, dword [eax + 4]
mov ecx, edi
call dword [0x4e1514]
mov ecx, ebx
call edi
mov byte [ebp - 4], 2
lea ecx, [esi - 0x10]
or eax, 0xffffffff
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x42b3b5
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x4e1514]
mov ecx, edi
call esi
mov ebx, dword [ebp - 0x10]
mov eax, 0x80808081
mov ecx, dword [ebx - 0xc]
imul ecx
add edx, ecx
sar edx, 7
mov esi, edx
shr esi, 0x1f
add esi, edx
cmp dword [ebx - 4], 1
mov dword [ebp - 0x18], esi
jle 0x42b3e3
push ecx
lea ecx, [ebp - 0x10]
call fcn.00402410
mov ebx, dword [ebp - 0x10]
test esi, esi
jle 0x42b41a
nop word [eax + eax]
movzx esi, word [ebx + 0x1fe]
xor eax, eax
push ebx
mov word [ebx + 0x1fe], ax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov word [ebx + 0x1fe], si
add ebx, 0x1fe
sub dword [ebp - 0x18], 1
jne 0x42b3f0
cmp word [ebx], 0
je 0x42b427
push ebx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov esi, dword [ebp - 0x28]
mov ecx, esi
call fcn.0042b5d0
mov eax, dword [esi + 0x34]
test eax, eax
je 0x42b467
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0x2c]
push 0
push edx
mov ecx, dword [eax - 0xc]
add ecx, ecx
push ecx
push eax
push dword [esi + 0x34]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [esi + 0x34]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov byte [ebp - 4], 0
or eax, 0xffffffff
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x42b492
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x4e1514]
mov ecx, edi
call esi
mov dword [ebp - 4], 0xffffffff
mov al, byte [ebp - 0x30]
test al, al
jne 0x42b4b0
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, 1
lea ecx, [ebp - 0x30]
xchg byte [ecx], al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push 0x80004005
call fcn.00402740
push 0x80004005
call fcn.00402740
int3