Function at 0x42af10
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x54638e
mov eax, dword fs:[0]
push eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5b2920]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
test byte [0x5c3990], 1
jne 0x42af81
or dword [0x5c3990], 1
xor ebp, ebp
push 8
mov dword [esp + 0x20], ebp
call fcn.004e943d
add esp, 4
cmp eax, ebp
je 0x42af6e
mov ebx, eax
or edi, 0xffffffff
mov dword [eax], ebp
mov dword [eax + 4], ebp
mov dword [0x5c398c], ebx
mov dword [esp + 0x1c], edi
jmp 0x42af8c
xor eax, eax
mov ebx, eax
or edi, 0xffffffff
mov dword [0x5c398c], ebx
mov dword [esp + 0x1c], edi
jmp 0x42af8c
mov ebx, dword [0x5c398c]
xor ebp, ebp
or edi, 0xffffffff
mov esi, dword [esp + 0x28]
cmp esi, ebp
jne 0x42b089
cmp dword [esp + 0x2c], ebp
jne 0x42b089
cmp dword [esp + 0x30], ebp
jne 0x42b089
cmp ebx, ebp
je 0x42afea
mov eax, dword [esp + 0x24]
mov eax, dword [eax + 0x14]
cmp dword [eax + 0x1c], edi
mov esi, dword [ebx + 4]
jne 0x42b002
cmp esi, ebp
je 0x42afdb
mov eax, esi
mov esi, dword [esi + 4]
push eax
call fcn.004e946d
add esp, 4
cmp esi, ebp
jne 0x42afc3
mov ebx, dword [0x5c398c]
push ebx
call fcn.004e946d
add esp, 4
mov dword [0x5c398c], ebp
xor eax, eax
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0x10
mov edx, dword [ebx]
lea ecx, [esp + 0x28]
push ecx
push 0x20
push edx
call fcn.0042aae0
mov eax, dword [0x5c398c]
push eax
call fcn.004e946d
add esp, 4
cmp esi, ebp
mov dword [0x5c398c], ebp
je 0x42b07f
mov edx, dword [esp + 0x24]
mov ebx, dword [edx + 0x14]
mov edi, esi
mov ecx, dword [edi]
mov esi, dword [esi + 4]
lea ebp, [ebx + 4]
push ebp
mov dword [esp + 0x34], ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [esp + 0x30]
mov edx, dword [ebx + 0x1c]
push 0
lea eax, [esp + 0x2c]
push eax
push 0x20
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebp
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [edi]
push eax
call fcn.004e946d
push edi
mov dword [edi], 0
call fcn.004e946d
add esp, 8
test esi, esi
jne 0x42b029
mov eax, 1
jmp 0x42afec
cmp ebx, ebp
jne 0x42b09d
mov ecx, dword [esp + 0x24]
mov eax, dword [ecx + 0x14]
cmp eax, ebp
je 0x42b09d
cmp dword [eax + 0x1c], edi
jne 0x42b109
mov eax, dword [ebx + 4]
cmp eax, ebp
je 0x42b0ad
mov ebx, eax
mov eax, dword [eax + 4]
cmp eax, ebp
jne 0x42b0a4
cmp dword [ebx], ebp
je 0x42b0cd
push 8
call fcn.004e943d
add esp, 4
cmp eax, ebp
je 0x42afea
mov dword [eax], ebp
mov dword [eax + 4], ebp
mov dword [ebx + 4], eax
mov ebx, eax
push 0x20
call fcn.004e943d
add esp, 4
cmp eax, ebp
mov dword [ebx], eax
je 0x42b109
xor ecx, ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], ecx
mov edi, dword [ebx]
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x28]
mov dword [ebx + 4], ebp
or edi, 0xffffffff
mov edx, dword [esp + 0x24]
mov eax, dword [edx + 0x14]
cmp eax, ebp
je 0x42afea
cmp dword [eax + 0x1c], edi
je 0x42afea
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
push ecx
push edx
push esi
call fcn.0042aae0
jmp 0x42afec