Function at 0x4159b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x4af890]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x5cf490], 0
push ebx
push esi
je 0x415be3
cmp dword [0x5d8be0], 0
jne 0x4159fb
push str.synced_FS_cache_on_startup_n
call fcn.0040a6f0
add esp, 4
mov dword [0x4ae1b0], 0
mov dword [0x5d8be0], 1
jmp 0x415a40
mov ecx, dword [0x5d8bdc]
mov edx, dword [0x5d8bd4]
mov esi, dword [0x5d8bd8]
lea eax, [ecx + edx]
add eax, esi
cmp eax, 8
jl 0x415a33
push edx
push ecx
push esi
push str.synced_FS_cache_on_readed_i__released_i__skipped_i_n
call fcn.0040a6f0
add esp, 0x10
mov dword [0x4ae1b0], 0
jmp 0x415a40
cmp dword [0x4ae1b0], 0
jne 0x415bce
mov eax, dword [0x5cf474]
mov esi, dword [0x5cf490]
push 0
push str.pk3cache.dat
push dword [eax + 4]
mov dword [ebp - 0x44], esi
call fcn.00411970
push 0x48dc78
push eax
call fcn.0043d640
mov ebx, eax
add esp, 0x14
mov dword [ebp - 0x3c], ebx
test ebx, ebx
je 0x415be3
push ebx
push 1
push 4
push 0x48db70
call fcn.0047356b
add esp, 0x10
test esi, esi
je 0x415b9d
push edi
mov esi, dword [esi + 4]
test esi, esi
je 0x415b8c
mov edx, dword [esi]
mov edi, edx
mov ecx, dword [esi + 0x18]
shl ecx, 4
add ecx, dword [esi + 0x2c]
mov dword [ebp - 0x40], ecx
lea ebx, [edi + 1]
mov dword [ebp - 0x48], edx
mov al, byte [edi]
inc edi
test al, al
jne 0x415ab4
mov eax, dword [esi + 0x18]
sub edi, ebx
push dword [ebp - 0x3c]
mov dword [ebp - 0x30], eax
mov ebx, edx
mov eax, dword [esi + 0x6c]
add edi, 4
mov dword [ebp - 0x2c], eax
sub ebx, ecx
mov eax, dword [esi + 0x50]
and edi, 0xfffffffc
mov dword [ebp - 0x24], eax
mov eax, dword [esi + 0x54]
mov dword [ebp - 0x20], eax
mov eax, dword [esi + 0x48]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x4c]
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 0x44]
push 1
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x38]
push 0x28
push eax
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x28], 0
call fcn.0047356b
push dword [ebp - 0x3c]
push 1
push edi
push dword [ebp - 0x48]
call fcn.0047356b
push dword [ebp - 0x3c]
push 1
push ebx
push dword [ebp - 0x40]
call fcn.0047356b
xor ebx, ebx
add esp, 0x30
cmp dword [esi + 0x18], ebx
jle 0x415b6c
xor edi, edi
mov ecx, dword [esi + 0x2c]
push dword [ebp - 0x3c]
push 1
mov eax, dword [ecx + edi]
sub eax, dword [ebp - 0x40]
mov dword [ebp - 0x10], eax
mov eax, dword [ecx + edi + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [ecx + edi + 4]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push 0xc
push eax
call fcn.0047356b
inc ebx
lea edi, [edi + 0x10]
add esp, 0x10
cmp ebx, dword [esi + 0x18]
jl 0x415b36
mov eax, dword [esi + 0x6c]
mov ebx, dword [ebp - 0x3c]
push ebx
push 1
lea eax, [eax*4 - 4]
push eax
mov eax, dword [esi + 0x68]
add eax, 4
push eax
call fcn.0047356b
add esp, 0x10
mov esi, dword [ebp - 0x44]
mov esi, dword [esi]
mov dword [ebp - 0x44], esi
test esi, esi
jne 0x415a93
pop edi
push ebx
call fcn.00472598
add esp, 4
mov dword [0x5d8bdc], 0
mov dword [0x5d8bd4], 0
mov dword [0x5d8bd8], 0
mov dword [0x4ae1b0], 1
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046cfaf
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop esi
xor ecx, ebp
pop ebx
call fcn.0046cfaf
mov esp, ebp
pop ebp
ret