Function at 0x100567a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1016e3a1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x14], esi
push edi
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x2c]
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x10]
lea ebx, [edi + 0x10]
add eax, 3
mov dword [ebp - 0x1c], 0
push eax
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
mov dword [ebp - 0x10], 1
call fcn.10021860
cmp dword [edi + 0x14], 0x10
jb 0x10056807
mov edi, dword [edi]
push dword [ebx]
lea ecx, [ebp - 0x2c]
push edi
call fcn.1001d140
push 3
push 0x101989e0
lea ecx, [ebp - 0x2c]
call fcn.1001d140
lea eax, [ebp - 0x2c]
mov ecx, esi
push eax
call fcn.10056620
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x18]
cmp edx, 0x10
jb 0x10056866
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1005685c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1005685c
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.100cd0a2
add esp, 8
mov eax, dword [ebp + 0xc]
mov ecx, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov edi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov dword [ebp + 8], eax
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
mov dword [esi], 0x10198a4c
test eax, eax
je 0x100568c5
push eax
push 4
lea eax, [ebp + 8]
push 1
push eax
call ecx
add esp, 0x10
cmp eax, 4
je 0x100568bf
push str.GSDump:_Error_failed_to_write_data_n
push 2
call edi
add esp, 4
push eax
call fcn.1001d650
add esp, 8
mov ecx, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov eax, dword [esi]
mov ebx, dword [ebp + 0x10]
mov eax, dword [eax + 4]
cmp eax, 0x100569d0
jne 0x10056902
mov eax, dword [esi + 0xc]
test eax, eax
je 0x10056909
push eax
push 4
push 1
push ebx
call ecx
add esp, 0x10
cmp eax, 4
je 0x10056909
push str.GSDump:_Error_failed_to_write_data_n
push 2
call edi
add esp, 4
push eax
call fcn.1001d650
add esp, 8
jmp 0x10056909
push 4
push ebx
mov ecx, esi
call eax
mov eax, dword [esi]
mov ecx, dword [ebx]
mov edx, dword [ebx + 4]
mov dword [ebp + 0xc], ecx
mov eax, dword [eax + 4]
cmp eax, 0x100569d0
jne 0x10056954
mov eax, dword [esi + 0xc]
test eax, eax
je 0x1005695a
mov ebx, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
test ecx, ecx
je 0x10056960
push eax
push ecx
push 1
push edx
call ebx
add esp, 0x10
cmp eax, dword [ebp + 0xc]
je 0x10056960
push str.GSDump:_Error_failed_to_write_data_n
push 2
call edi
add esp, 4
push eax
call fcn.1001d650
add esp, 8
jmp 0x10056960
push ecx
push edx
mov ecx, esi
call eax
mov ebx, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov eax, dword [esi]
mov eax, dword [eax + 4]
cmp eax, 0x100569d0
jne 0x100569a1
mov eax, dword [esi + 0xc]
test eax, eax
je 0x100569ad
push eax
push 0x2000
push 1
push dword [ebp + 0x14]
call ebx
add esp, 0x10
cmp eax, 0x2000
je 0x100569ad
push str.GSDump:_Error_failed_to_write_data_n
push 2
call edi
add esp, 4
push eax
call fcn.1001d650
add esp, 8
jmp 0x100569ad
push 0x2000
push dword [ebp + 0x14]
mov ecx, esi
call eax
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x10