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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x61662e
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x69cffc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 4], 1
call fcn.0044a657
mov ecx, eax
test ecx, ecx
je 0x40a297
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
mov byte [ebp - 4], 2
call fcn.0044a657
mov ecx, eax
test ecx, ecx
je 0x40a2a1
mov eax, dword [ecx]
call dword [eax + 0xc]
mov edi, dword [ebp + 0xc]
add eax, 0x10
mov dword [edi], eax
push str._Y__m__d__H:_M:_S__t
lea eax, [ebp - 0x20]
mov dword [ebp - 0x18], 1
push eax
lea ecx, [ebp - 0x28]
call fcn.00404500
mov ecx, eax
call fcn.00404520
mov byte [ebp - 4], 3
lea ecx, [esi - 0x10]
mov edx, dword [eax]
or ebx, 0xffffffff
mov dword [ebp - 0x1c], ecx
lea eax, [edx - 0x10]
mov dword [ebp - 0x14], eax
cmp eax, ecx
je 0x40a095
cmp dword [ecx + 0xc], 0
lea esi, [ecx + 0xc]
jl 0x40a086
mov eax, dword [eax]
cmp eax, dword [ecx]
jne 0x40a086
push dword [ebp - 0x14]
call fcn.004027b0
add esp, 4
mov dword [ebp - 0x14], eax
mov ecx, ebx
lock xadd dword [esi], ecx
dec ecx
test ecx, ecx
jg 0x40a07e
mov esi, dword [ebp - 0x1c]
push esi
mov ecx, dword [esi]
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x14]
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
jmp 0x40a095
push dword [edx - 0xc]
lea ecx, [ebp - 0x10]
push edx
call fcn.00402df0
mov esi, dword [ebp - 0x10]
mov byte [ebp - 4], 2
mov eax, ebx
mov edx, dword [ebp - 0x20]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40a0b3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp + 0x18]
mov ecx, edi
push eax
push dword [ebp + 0x14]
call fcn.004032c0
push edi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.004046d0
add esp, 0xc
mov byte [ebp - 4], 4
mov edx, dword [eax]
mov ecx, dword [edi]
sub ecx, 0x10
mov dword [ebp - 0x14], ecx
lea eax, [edx - 0x10]
mov dword [ebp - 0x20], eax
cmp eax, ecx
je 0x40a13b
cmp dword [ecx + 0xc], 0
lea edi, [ecx + 0xc]
mov dword [ebp - 0x1c], edi
mov edi, dword [ebp + 0xc]
jl 0x40a130
mov eax, dword [eax]
cmp eax, dword [ecx]
jne 0x40a130
push dword [ebp - 0x20]
call fcn.004027b0
mov dword [ebp - 0x20], eax
add esp, 4
mov eax, dword [ebp - 0x1c]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40a126
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [eax]
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x20]
add eax, 0x10
mov dword [edi], eax
jmp 0x40a13b
push dword [edx - 0xc]
mov ecx, edi
push edx
call fcn.00402df0
mov byte [ebp - 4], 2
mov eax, ebx
mov edx, dword [ebp - 0x24]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40a159
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [edi]
mov ecx, dword [eax - 0xc]
mov dword [ebp - 0x24], ecx
lea edx, [ecx + 1]
test edx, edx
js 0x40a28d
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, edx
or eax, ecx
jge 0x40a185
push edx
mov ecx, edi
call fcn.00403180
mov eax, dword [edi]
mov edx, 0xa
mov ecx, dword [ebp - 0x24]
mov word [eax + ecx*2], dx
lea edx, [ecx + 1]
mov eax, dword [edi]
cmp edx, dword [eax - 8]
jg 0x40a28d
mov dword [eax - 0xc], edx
xor ecx, ecx
mov eax, dword [edi]
mov word [eax + edx*2], cx
push dword [edi]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp + 0x10], 0
je 0x40a242
mov eax, dword [ebp + 8]
mov eax, dword [eax]
test eax, eax
je 0x40a242
cmp dword [eax - 0xc], 0
je 0x40a242
mov eax, dword [edi]
mov eax, dword [eax - 0xc]
lea eax, [eax*2 + 1]
push eax
call fcn.00447f05
mov ecx, dword [edi]
add esp, 4
mov dword [ebp - 0x14], eax
cmp dword [ecx - 4], 1
mov edx, dword [ecx - 0xc]
mov dword [ebp - 0x24], edx
jle 0x40a201
push edx
mov ecx, edi
call fcn.004030b0
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x24]
push edx
push dword [edi]
push eax
call fcn.005f9347
add esp, 0xc
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 8]
push 0x66ecf0
push dword [eax]
call fcn.005f219b
add esp, 8
mov dword [ebp - 0x20], eax
test eax, eax
je 0x40a242
push eax
push dword [ebp - 0x24]
push 1
push dword [ebp - 0x14]
call fcn.005f2082
push dword [ebp - 0x20]
call fcn.005f1ddf
add esp, 0x14
mov byte [ebp - 4], 1
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40a25d
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov eax, dword [ebp + 0x14]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x40a279
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00403270
push 0x80004005
call fcn.00403270
push 0x80004005
call fcn.00403270
int3