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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f4c80
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x54c1b4]
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 0x42d8fc
cmp byte [esi], 0
je 0x42d8fc
mov eax, dword [ebp + 0x10]
push eax
push ecx
mov ecx, dword [ebp + 0x14]
lea edx, [ebp + 0x14]
push edx
call fcn.0042d0b0
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp - 0x14]
push ecx
lea ebx, [ebp + 0x14]
mov byte [ebp - 4], 1
call fcn.0042e6e0
push eax
lea edx, [ebp + 0x10]
push edx
mov ebx, 0x515dcc
mov byte [ebp - 4], 2
call fcn.0042e790
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 0x42d71d
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 0x42d824
cmp dword [esi + 0xa4], 0xffffffff
jne 0x42d760
push 0
push 0
push esi
push 0x42dfa0
push 0
push 0
call fcn.004be51d
add esp, 0x18
mov dword [esi + 0xa4], eax
cmp dword [esi + 0xac], 0x3e8
jbe 0x42d777
lea edi, [esi + 0xa8]
call fcn.0042e950
lea edi, [esi + 0xa8]
lea eax, [ebp + 0x10]
call fcn.0042e9a0
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 0x42d7c5
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 0x42d7e8
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 0x42d80e
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 0x42d844
mov ecx, esi
call fcn.0042d940
mov ecx, esi
call fcn.0042cbb0
test al, al
je 0x42d8c6
mov byte [esi + 0x6c], 1
mov eax, dword [ebp + 0x10]
cmp dword [eax - 4], 1
mov edi, dword [eax - 0xc]
jle 0x42d85d
push edi
lea eax, [ebp + 0x10]
push eax
call fcn.00407cc0
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 0x42d89a
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 0x42d792
mov ecx, esi
call fcn.0042d440
mov dword [esi + 0x9c], 0
jmp 0x42d792
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea eax, [ebp + 0x10]
call fcn.00408010
lea eax, [ebp + 0x14]
call fcn.00408010
lea eax, [ebp + 0xc]
call fcn.00408010
jmp 0x42d922
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 0x42d922
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