Function at 0x46bb20
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a1a45
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x639354]
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.0055c4f4
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 0x46bcd8
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 0x46bba5
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 0x46bcce
mov eax, dword [esi + 8]
test eax, eax
jne 0x46bbe2
push 0x5bfafc
push dword [esi + 0x18]
call fcn.0057408b
add esp, 8
mov dword [esi + 8], eax
test eax, eax
je 0x46bcce
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 0x46bc21
cmp dword [eax + 0x14], 0x10
mov ecx, dword [eax + 0x10]
jb 0x46bc17
mov eax, dword [eax]
push ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.00438630
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.0046b310
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 0x46bc76
push eax
push dword [ebp - 0x18]
push 1
push ecx
call fcn.00570858
push dword [esi + 8]
push 2
push 1
push 0x5bfb04
call fcn.00570858
mov eax, dword [esi + 8]
add esp, 0x20
test edi, edi
jne 0x46bc00
test eax, eax
je 0x46bc8a
push eax
call fcn.0056fd96
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 0x46bb80
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x46bcbf
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46bd65
push edx
push ecx
call fcn.0055c524
add esp, 8
jmp 0x46bb7c
cmp dword [esi + 4], 0
je 0x46bb69
mov eax, dword [ebx + 4]
mov dword [eax], 0
mov esi, dword [ebx]
test esi, esi
je 0x46bd3c
mov ecx, dword [esi + 0x1c]
mov edi, dword [esi]
cmp ecx, 0x10
jb 0x46bd19
mov eax, dword [esi + 8]
inc ecx
cmp ecx, 0x1000
jb 0x46bd0f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46bd65
mov eax, edx
push ecx
push eax
call fcn.0055c524
add esp, 8
push 0x20
push esi
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0xf
mov byte [esi + 8], 0
call fcn.0055c524
add esp, 8
mov esi, edi
test edi, edi
jne 0x46bce7
push 0x20
push ebx
call fcn.0055c524
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.0055c3a9
mov esp, ebp
pop ebp
ret
call fcn.0056af64
int3