Function at 0x5c0c50
Capabilities:
Create thread
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x6c
mov dword [esp + 0x5c], ebx
mov ebx, dword [esp + 0x70]
mov dword [esp + 0x60], esi
mov dword [esp + 0x64], edi
mov dword [esp + 0x68], ebp
mov esi, dword [ebx + 0x20]
test esi, esi
jne 0x5c0c72
mov si, 0x800
mov edx, dword [ebx + 0x1c]
and edx, 8
je 0x5c0cb1
mov dword [esp + 8], str._rThis_stream_is_non_cacheable_n
mov edi, 1
mov dword [esp + 4], 5
mov dword [esp], 0x15
call fcn.0042b9b0
mov eax, edi
mov ebx, dword [esp + 0x5c]
mov esi, dword [esp + 0x60]
mov edi, dword [esp + 0x64]
mov ebp, dword [esp + 0x68]
add esp, 0x6c
ret
mov dword [esp + 0x3c], edx
mov edi, 0xffffffff
mov dword [esp], 0x78
call sub.msvcrt.dll_malloc
mov edx, dword [esp + 0x3c]
test eax, eax
mov ebp, eax
je 0x5c0c9b
mov edi, eax
mov ecx, 0x1e
mov eax, edx
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x74]
mov edx, eax
sar edx, 0x1f
idiv esi
cmp eax, 0xf
jg 0x5c0cf0
mov eax, 0x10
mov edi, eax
imul edi, esi
mov dword [ebp + 8], esi
mov dword [ebp + 4], edi
mov dword [esp], edi
call sub.msvcrt.dll_malloc
test eax, eax
mov dword [ebp], eax
je 0x5c0f48
mov eax, edi
shr eax, 0x1f
add eax, edi
sar eax, 1
mov dword [ebp + 0xc], eax
mov eax, dword [esp + 0x7c]
shl esi, 3
sub edi, esi
mov dword [ebp + 0x10], esi
mov dword [ebx + 0x54], ebp
cmp eax, edi
mov dword [ebp + 0x40], ebx
mov dword [ebp + 0x14], eax
jle 0x5c0d36
mov dword [ebp + 0x14], edi
cmp edi, dword [esp + 0x78]
jle 0x5c0d40
mov edi, dword [esp + 0x78]
test edi, edi
jle 0x5c0f29
mov dword [esp], 0x2068
call sub.msvcrt.dll_malloc
mov dword [esp + 8], 0x2068
mov dword [esp + 4], ebx
mov esi, eax
mov dword [esp], eax
call sub.msvcrt.dll_memcpy
mov dword [ebp + 0x40], esi
mov dword [esp + 8], ebp
mov dword [esp + 4], 0
mov dword [esp], 0x5c0650
call sub.msvcrt.dll__beginthread
test eax, eax
mov dword [ebx + 0x50], eax
jne 0x5c0e04
call sub.msvcrt.dll__errno
mov edi, 0xffffffff
mov eax, dword [eax]
mov dword [esp], eax
call sub.msvcrt.dll_strerror
mov dword [esp + 8], str.Starting_cache_process_thread_failed:__s._n
mov dword [esp + 4], 1
mov dword [esp], 0x15
mov dword [esp + 0xc], eax
call fcn.0042b9b0
mov edx, dword [ebx + 0x50]
mov esi, dword [ebx + 0x54]
test edx, edx
jne 0x5c0f35
test esi, esi
je 0x5c0c9b
mov eax, dword [esi]
mov dword [esp], eax
call fcn.008f2ba8
mov eax, dword [ebx + 0x54]
mov dword [esi], 0
mov dword [esi + 0x40], 0
mov dword [esp], eax
call fcn.008f2ba8
mov dword [ebx + 0x54], 0
jmp 0x5c0c9b
mov eax, dword [ebp + 0x18]
mov edx, dword [ebp + 0x2c]
mov dword [esp + 0x24], edi
mov dword [esp + 8], str.CACHE_PRE_INIT:__I64d___I64d___I64d__pre:_d__eof:_d___n
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 0x28]
mov dword [esp + 0x20], edx
mov edx, dword [ebp + 0x3c]
mov dword [esp + 4], 6
mov dword [esp], 0x15
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0x38]
mov dword [esp + 0x18], edx
mov edx, dword [ebp + 0x24]
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0x20]
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], eax
call fcn.0042b9b0
mov eax, edi
sar eax, 0x1f
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], eax
jmp 0x5c0ec6
mov eax, dword [ebp + 0x28]
mov edx, dword [ebp + 0x2c]
sub eax, esi
sbb edx, edi
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], edx
fild qword [esp + 0x48]
fld qword [0xa07fb8]
fmulp st(1)
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], edx
mov dword [esp + 8], str._rCache_fill:__5.2f_____I64d_bytes_
mov dword [esp + 4], 5
fild dword [ebp + 4]
fdivp st(1)
mov dword [esp], 0x15
fstp qword [esp + 0xc]
call fcn.0042b9b0
mov ecx, dword [ebp + 0x18]
test ecx, ecx
jne 0x5c0eea
mov dword [esp], 0xc8
call fcn.004f9da0
test eax, eax
jne 0x5c0f22
mov edi, dword [ebp + 0x3c]
cmp edi, dword [ebp + 0x24]
mov esi, dword [ebp + 0x38]
jl 0x5c0e64
jg 0x5c0ed8
cmp esi, dword [ebp + 0x20]
jb 0x5c0e64
mov eax, dword [ebp + 0x28]
mov edx, dword [ebp + 0x2c]
sub eax, esi
sbb edx, edi
cmp edx, dword [esp + 0x44]
jl 0x5c0e6e
jle 0x5c0f10
mov dword [esp + 8], 0xa07e6e
mov edi, 1
mov dword [esp + 4], 5
mov dword [esp], 0x15
call fcn.0042b9b0
jmp 0x5c0c9b
cmp eax, dword [esp + 0x40]
jb 0x5c0e6e
lea esi, [esi]
jmp 0x5c0eea
xor edi, edi
jmp 0x5c0dc0
mov edi, 1
nop
jmp 0x5c0d48
mov eax, ebx
call fcn.005c0b60
mov dword [ebx + 0x50], 0
jmp 0x5c0dce
mov dword [esp], ebp
mov edi, 0xffffffff
call fcn.008f2ba8
jmp 0x5c0c9b