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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ea9f0
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x53f1e4]
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 0x42c6ac
cmp byte [esi], 0
je 0x42c6ac
mov eax, dword [ebp + 0x10]
push eax
push ecx
mov ecx, dword [ebp + 0x14]
lea edx, [ebp + 0x14]
push edx
call fcn.0042be60
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp - 0x14]
push ecx
lea ebx, [ebp + 0x14]
mov byte [ebp - 4], 1
call fcn.0042d3e0
push eax
lea edx, [ebp + 0x10]
push edx
mov ebx, 0x50a564
mov byte [ebp - 4], 2
call fcn.0042d490
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 0x42c4cd
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 0x42c5d4
cmp dword [esi + 0xa4], 0xffffffff
jne 0x42c510
push 0
push 0
push esi
push 0x42cd50
push 0
push 0
call fcn.004b4b99
add esp, 0x18
mov dword [esi + 0xa4], eax
cmp dword [esi + 0xac], 0x3e8
jbe 0x42c527
lea edi, [esi + 0xa8]
call fcn.0042d650
lea edi, [esi + 0xa8]
lea eax, [ebp + 0x10]
call fcn.0042d6a0
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 0x42c575
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 0x42c598
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 0x42c5be
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 0x42c5f4
mov ecx, esi
call fcn.0042c6f0
mov ecx, esi
call fcn.0042b960
test al, al
je 0x42c676
mov byte [esi + 0x6c], 1
mov eax, dword [ebp + 0x10]
cmp dword [eax - 4], 1
mov edi, dword [eax - 0xc]
jle 0x42c60d
push edi
lea eax, [ebp + 0x10]
push eax
call fcn.00408790
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 0x42c64a
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 0x42c542
mov ecx, esi
call fcn.0042c1f0
mov dword [esi + 0x9c], 0
jmp 0x42c542
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea eax, [ebp + 0x10]
call fcn.00408ae0
lea eax, [ebp + 0x14]
call fcn.00408ae0
lea eax, [ebp + 0xc]
call fcn.00408ae0
jmp 0x42c6d2
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 0x42c6d2
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