Function at 0x42cbc0
Capabilities:
Create thread
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f3ae0
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x54b1b4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, dword [ebp + 8]
mov dword [ebp - 4], 0
cmp byte [esi + 0xa0], 0
jne 0x42ce4c
cmp byte [esi], 0
je 0x42ce4c
mov eax, dword [ebp + 0x10]
push eax
push ecx
mov ecx, dword [ebp + 0x14]
lea edx, [ebp + 0x14]
push edx
call fcn.0042c600
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp - 0x14]
push ecx
lea ebx, [ebp + 0x14]
mov byte [ebp - 4], 1
call fcn.0042dc30
push eax
lea edx, [ebp + 0x10]
push edx
mov ebx, 0x514ba4
mov byte [ebp - 4], 2
call fcn.0042dce0
add esp, 0x10
mov ebx, 4
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42cc6d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea edi, [esi + 0x84]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [ebp - 4], 5
cmp byte [esi + 0xa1], 0
jne 0x42cd74
cmp dword [esi + 0xa4], 0xffffffff
jne 0x42ccb0
push 0
push 0
push esi
push 0x42d4f0
push 0
push 0
call fcn.004bd3ed
add esp, 0x18
mov dword [esi + 0xa4], eax
cmp dword [esi + 0xac], 0x3e8
jbe 0x42ccc7
lea edi, [esi + 0xa8]
call fcn.0042dea0
lea edi, [esi + 0xa8]
lea eax, [ebp + 0x10]
call fcn.0042def0
mov ecx, dword [esi + 0xb4]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov dword [ebp - 4], ebx
add esi, 0x84
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov byte [ebp - 4], 1
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x42cd15
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42cd38
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42cd5e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
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 0x10
cmp byte [esi + 0x6c], 0
jne 0x42cd94
mov ecx, esi
call fcn.0042ce90
mov ecx, esi
call fcn.0042c100
test al, al
je 0x42ce16
mov byte [esi + 0x6c], 1
mov eax, dword [ebp + 0x10]
cmp dword [eax - 4], 1
mov edi, dword [eax - 0xc]
jle 0x42cdad
push edi
lea eax, [ebp + 0x10]
push eax
call fcn.004078f0
mov eax, dword [ebp + 0x10]
push 0
lea ecx, [ebp - 0x18]
push ecx
lea edx, [edi + edi]
push edx
push eax
mov eax, dword [esi + 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
inc dword [esi + 0x9c]
mov eax, dword [esi + 0x9c]
cdq
mov ecx, 0x64
idiv ecx
test edx, edx
jne 0x42cdea
mov edx, dword [esi + 0x80]
push edx
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov eax, dword [esi + 0x9c]
cdq
mov ecx, 0x64
idiv ecx
test edx, edx
jne 0x42cce2
mov ecx, esi
call fcn.0042c990
mov dword [esi + 0x9c], 0
jmp 0x42cce2
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea eax, [ebp + 0x10]
call fcn.00407c40
lea eax, [ebp + 0x14]
call fcn.00407c40
lea eax, [ebp + 0xc]
call fcn.00407c40
jmp 0x42ce72
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42ce72
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, 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