Function at 0x46bf10
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59d585
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x63434c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
xor edi, edi
push 0x20
mov dword [ebp - 0x2c], edi
call fcn.00557fd4
mov ebx, eax
add esp, 4
mov dword [ebp - 0x30], ebx
mov dword [ebx], ebx
mov dword [ebx + 4], ebx
mov dword [ebp - 4], edi
push 0xffffffffffffffff
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x46c0c8
lea ecx, [esi + 0x20]
nop
push ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [ebp - 0x30]
lea ecx, [esi + 0x38]
cmp eax, ecx
je 0x46bf95
mov eax, ebx
mov ebx, dword [ecx]
mov dword [ecx], eax
mov eax, edi
mov edi, dword [ecx + 4]
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], edi
mov dword [ecx + 4], eax
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea eax, [esi + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test edi, edi
je 0x46c0be
mov eax, dword [esi + 8]
test eax, eax
jne 0x46bfd2
push 0x5bab9c
push dword [esi + 0x18]
call fcn.0056fb3b
add esp, 8
mov dword [esi + 8], eax
test eax, eax
je 0x46c0be
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
mov byte [ebp - 4], 1
nop
mov eax, dword [ebx]
lea ecx, [ebp - 0x28]
add eax, 8
cmp ecx, eax
je 0x46c011
cmp dword [eax + 0x14], 0x10
mov ecx, dword [eax + 0x10]
jb 0x46c007
mov eax, dword [eax]
push ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.004385d0
mov edx, dword [ebx]
dec edi
push edx
mov dword [ebp - 0x2c], edi
mov eax, dword [edx + 4]
mov ecx, dword [edx]
mov dword [eax], ecx
mov eax, dword [edx + 4]
mov dword [ecx + 4], eax
lea eax, [ebp - 0x30]
push eax
call fcn.0046b700
mov eax, dword [esi + 8]
lea ecx, [ebp - 0x28]
add esp, 8
cmp dword [ebp - 0x14], 0x10
cmovae ecx, dword [ebp - 0x28]
test eax, eax
je 0x46c066
push eax
push dword [ebp - 0x18]
push 1
push ecx
call fcn.0056c308
push dword [esi + 8]
push 2
push 1
push 0x5baba4
call fcn.0056c308
mov eax, dword [esi + 8]
add esp, 0x20
test edi, edi
jne 0x46bff0
test eax, eax
je 0x46c07a
push eax
call fcn.0056b846
add esp, 4
mov dword [esi + 8], edi
mov edx, dword [ebp - 0x14]
lea ecx, [esi + 0x20]
mov byte [ebp - 4], 0
cmp edx, 0x10
jb 0x46bf70
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x46c0af
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46c155
push edx
push ecx
call fcn.00558004
add esp, 8
jmp 0x46bf6c
cmp dword [esi + 4], 0
je 0x46bf59
mov eax, dword [ebx + 4]
mov dword [eax], 0
mov esi, dword [ebx]
test esi, esi
je 0x46c12c
mov ecx, dword [esi + 0x1c]
mov edi, dword [esi]
cmp ecx, 0x10
jb 0x46c109
mov eax, dword [esi + 8]
inc ecx
cmp ecx, 0x1000
jb 0x46c0ff
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46c155
mov eax, edx
push ecx
push eax
call fcn.00558004
add esp, 8
push 0x20
push esi
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0xf
mov byte [esi + 8], 0
call fcn.00558004
add esp, 8
mov esi, edi
test edi, edi
jne 0x46c0d7
push 0x20
push ebx
call fcn.00558004
add esp, 8
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00557e89
mov esp, ebp
pop ebp
ret
call fcn.00566a14
int3