Function at 0x5c0f60
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x1c
mov dword [esp + 0x10], ebx
mov ebx, dword [esp + 0x20]
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], edi
lea esi, [ebx + 0x64]
mov eax, ebx
mov edx, esi
call fcn.004f94a0
test eax, eax
mov edi, eax
jle 0x4f9700
mov dword [ebx + 0x2c], eax
mov eax, dword [ebx + 0x2064]
mov dword [ebx + 0x28], 0
test eax, eax
je 0x4f9699
mov dword [esp + 0xc], eax
mov dword [esp + 8], 1
mov dword [esp + 4], edi
mov dword [esp], esi
call sub.msvcrt.dll_fwrite
test eax, eax
je 0x4f96b0
mov eax, edi
mov ebx, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
add esp, 0x1c
ret
call sub.msvcrt.dll__errno
mov eax, dword [eax]
mov dword [esp], eax
call sub.msvcrt.dll_strerror
mov dword [esp + 8], str.Error_writing_capture_file:__s_n
mov dword [esp + 4], 1
mov dword [esp], 0
mov dword [esp + 0xc], eax
call fcn.0042b9b0
mov eax, dword [ebx + 0x2064]
mov dword [esp], eax
call sub.msvcrt.dll_fclose
mov dword [ebx + 0x2064], 0
jmp 0x4f9699
xor edi, edi
jmp 0x4f9699
push ebp
push edi
push esi
push ebx
sub esp, 0x5c
mov esi, dword [esp + 0x70]
mov ebx, dword [esi + 0x50]
test ebx, ebx
je 0x5c1186
mov ebx, dword [esi + 0x54]
mov eax, dword [esi + 0x30]
mov edx, dword [esi + 0x34]
xor edx, dword [ebx + 0x3c]
xor eax, dword [ebx + 0x38]
or edx, eax
je 0x5c0fa8
mov dword [esp + 8], str.____read_filepos_differs____report_this_bug..._n
mov dword [esp + 4], 1
mov dword [esp], 0x15
call fcn.0042b9b0
mov ebx, dword [esi + 0x54]
mov edi, dword [ebx + 8]
cmp edi, 0x2000
jg 0x5c1140
test edi, edi
mov eax, dword [ebx + 0x28]
mov edx, dword [ebx + 0x2c]
jle 0x5c11a0
lea ecx, [esi + 0x64]
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x2c], edi
mov ecx, dword [ebx + 0x3c]
mov ebp, dword [ebx + 0x38]
cmp ecx, edx
jg 0x5c0ff4
jl 0x5c1054
cmp ebp, eax
jb 0x5c1054
mov ecx, dword [ebx + 0x18]
test ecx, ecx
jne 0x5c10da
mov edi, dword [esp + 0x34]
mov ecx, dword [esp + 0x34]
mov ebp, edi
sar ebp, 0x1f
xor ecx, eax
xor edx, ebp
or edx, ecx
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], ebp
je 0x5c1124
mov dword [esp + 0x34], eax
mov dword [esp + 0x3c], 0
mov dword [esp], 0xa
call fcn.004f9da0
test eax, eax
jne 0x5c10d3
mov ebp, dword [esp + 0x2c]
test ebp, ebp
jle 0x5c10da
mov eax, dword [ebx + 0x28]
mov edx, dword [ebx + 0x2c]
jmp 0x5c0fe4
cmp ecx, dword [ebx + 0x24]
jg 0x5c1062
jl 0x5c0ff4
cmp ebp, dword [ebx + 0x20]
nop
jb 0x5c0ff4
sub eax, ebp
cmp eax, dword [0xc1166c]
jge 0x5c1071
mov dword [0xc1166c], eax
mov edx, ebp
sub edx, dword [ebx + 0x30]
js 0x5c1192
mov ecx, dword [ebx + 4]
cmp edx, ecx
jl 0x5c1085
sub edx, ecx
cmp eax, dword [esp + 0x2c]
jle 0x5c108f
mov eax, dword [esp + 0x2c]
sub ecx, edx
mov ebp, eax
cmp eax, ecx
jle 0x5c1099
mov ebp, ecx
mov eax, dword [esp + 0x4c]
add edx, dword [ebx]
mov dword [esp + 8], ebp
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.msvcrt.dll_memcpy
mov edx, ebp
sar edx, 0x1f
add dword [esp + 0x4c], ebp
add dword [ebx + 0x38], ebp
adc dword [ebx + 0x3c], edx
sub dword [esp + 0x2c], ebp
add dword [esp + 0x38], ebp
mov dword [esp + 0x3c], 0
jmp 0x5c1040
mov dword [ebx + 0x18], 1
mov edi, dword [esp + 0x38]
test edi, edi
jle 0x5c11a0
mov ecx, dword [esp + 0x38]
mov ebx, dword [esi + 0x2064]
mov dword [esi + 0x48], 0
mov dword [esi + 0x28], 0
mov ebp, ecx
sar ebp, 0x1f
add dword [esi + 0x30], ecx
adc dword [esi + 0x34], ebp
test ebx, ebx
mov dword [esi + 0x2c], ecx
je 0x5c1118
mov dword [esp], esi
call fcn.004f9090
mov eax, dword [esp + 0x38]
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret
mov ebp, dword [esp + 0x3c]
add ebp, 1
cmp dword [esp + 0x3c], 0xa
je 0x5c11d0
mov dword [esp + 0x3c], ebp
jmp 0x5c102c
mov dword [esp + 0xc], edi
mov edi, 0x2000
mov dword [esp + 0x10], 0x2000
mov dword [esp + 8], str.Sector_size__i_larger_than_maximum__i_n
mov dword [esp + 4], 1
mov dword [esp], 0x15
call fcn.0042b9b0
mov ebx, dword [esi + 0x54]
lea eax, [esi + 0x64]
mov dword [esp + 0x4c], eax
mov eax, dword [ebx + 0x28]
mov edx, dword [ebx + 0x2c]
mov dword [esp + 0x34], eax
jmp 0x5c0fd0
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
jmp 0x4f9640
add edx, dword [ebx + 4]
mov ecx, dword [ebx + 4]
jmp 0x5c1085
mov dword [esi + 0x48], 1
mov dword [esi + 0x2c], 0
mov dword [esi + 0x28], 0
mov dword [esp + 0x38], 0
mov eax, dword [esp + 0x38]
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], str.Cache_not_filling__consider_increasing__cache_and_or__cache_min__n
mov dword [esp + 4], 2
mov dword [esp], 0x15
call fcn.0042b9b0
mov dword [esp + 0x3c], ebp
jmp 0x5c102c