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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4eed40
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x5441b4]
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 0x42b33c
cmp byte [esi], 0
je 0x42b33c
mov eax, dword [ebp + 0x10]
push eax
push ecx
mov ecx, dword [ebp + 0x14]
lea edx, [ebp + 0x14]
push edx
call fcn.0042aaf0
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp - 0x14]
push ecx
lea ebx, [ebp + 0x14]
mov byte [ebp - 4], 1
call fcn.0042c120
push eax
lea edx, [ebp + 0x10]
push edx
mov ebx, 0x50f4ec
mov byte [ebp - 4], 2
call fcn.0042c1d0
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 0x42b15d
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 0x42b264
cmp dword [esi + 0xa4], 0xffffffff
jne 0x42b1a0
push 0
push 0
push esi
push 0x42b9e0
push 0
push 0
call fcn.004b902f
add esp, 0x18
mov dword [esi + 0xa4], eax
cmp dword [esi + 0xac], 0x3e8
jbe 0x42b1b7
lea edi, [esi + 0xa8]
call fcn.0042c390
lea edi, [esi + 0xa8]
lea eax, [ebp + 0x10]
call fcn.0042c3e0
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 0x42b205
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 0x42b228
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 0x42b24e
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 0x42b284
mov ecx, esi
call fcn.0042b380
mov ecx, esi
call fcn.0042a5f0
test al, al
je 0x42b306
mov byte [esi + 0x6c], 1
mov eax, dword [ebp + 0x10]
cmp dword [eax - 4], 1
mov edi, dword [eax - 0xc]
jle 0x42b29d
push edi
lea eax, [ebp + 0x10]
push eax
call fcn.00406870
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 0x42b2da
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 0x42b1d2
mov ecx, esi
call fcn.0042ae80
mov dword [esi + 0x9c], 0
jmp 0x42b1d2
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea eax, [ebp + 0x10]
call fcn.00406bc0
lea eax, [ebp + 0x14]
call fcn.00406bc0
lea eax, [ebp + 0xc]
call fcn.00406bc0
jmp 0x42b362
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 0x42b362
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