Function at 0x658680
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
push edi
push 1
push 4
lea eax, [esi + 0x15c]
push eax
call ebx
push edi
push 1
lea eax, [esi + 0x17c]
push 4
push eax
call ebx
push edi
push 1
lea eax, [esi + 0x180]
push 4
push eax
call ebx
mov eax, dword [esi + 0x1a4]
lea ecx, [esi + 0x1b0]
push edi
push 1
push 2
push ecx
mov dword [ecx], eax
call ebx
mov eax, dword [esi + 0x1a0]
add esp, 0x40
mov ecx, dword [eax]
mov dword [esi + 0x1a8], ecx
cmp ecx, eax
je 0x65875a
push edi
push 1
lea eax, [ecx + 0x10]
push 2
push eax
call ebx
mov eax, dword [esi + 0x1a8]
push edi
push 1
add eax, 0x14
push 0x10
push eax
call ebx
mov eax, dword [esi + 0x1a8]
add esp, 0x20
mov ecx, dword [eax + 8]
cmp byte [ecx + 0xd], 0
je 0x658738
mov ecx, dword [eax + 4]
cmp byte [ecx + 0xd], 0
jne 0x65874c
nop dword [eax]
cmp eax, dword [ecx + 8]
jne 0x65874c
mov dword [esi + 0x1a8], ecx
mov eax, ecx
mov ecx, dword [ecx + 4]
cmp byte [ecx + 0xd], 0
je 0x658720
jmp 0x65874c
mov edx, dword [ecx]
cmp byte [edx + 0xd], 0
jne 0x65874c
mov eax, dword [edx]
mov ecx, edx
mov edx, eax
cmp byte [eax + 0xd], 0
je 0x658740
mov dword [esi + 0x1a8], ecx
cmp ecx, dword [esi + 0x1a0]
jne 0x6586e6
mov eax, dword [esi + 0x18c]
lea ecx, [esi + 0x198]
push edi
push 1
push 2
push ecx
mov dword [ecx], eax
call ebx
mov eax, dword [esi + 0x188]
add esp, 0x10
mov ecx, dword [eax]
mov dword [esi + 0x190], ecx
cmp ecx, eax
je 0x6587fa
push edi
push 1
lea eax, [ecx + 0x10]
push 2
push eax
call ebx
mov eax, dword [esi + 0x190]
push edi
push 1
add eax, 0x14
push 0xc
push eax
call ebx
mov eax, dword [esi + 0x190]
add esp, 0x20
mov ecx, dword [eax + 8]
cmp byte [ecx + 0xd], 0
je 0x6587d8
mov ecx, dword [eax + 4]
cmp byte [ecx + 0xd], 0
jne 0x6587ec
nop dword [eax]
cmp eax, dword [ecx + 8]
jne 0x6587ec
mov dword [esi + 0x190], ecx
mov eax, ecx
mov ecx, dword [ecx + 4]
cmp byte [ecx + 0xd], 0
je 0x6587c0
jmp 0x6587ec
mov edx, dword [ecx]
cmp byte [edx + 0xd], 0
jne 0x6587ec
mov eax, dword [edx]
mov ecx, edx
mov edx, eax
cmp byte [eax + 0xd], 0
je 0x6587e0
mov dword [esi + 0x190], ecx
cmp ecx, dword [esi + 0x188]
jne 0x658785
mov eax, dword [esi + 0x1bc]
lea ecx, [esi + 0x1c8]
push edi
push 1
push 2
push ecx
mov dword [ecx], eax
call ebx
mov ecx, dword [esi + 0x1b8]
add esp, 0x10
mov eax, dword [ecx]
mov dword [esi + 0x1c0], eax
cmp eax, ecx
je 0x65889a
push edi
push 1
add eax, 0x10
push 2
push eax
call ebx
mov eax, dword [esi + 0x1c0]
push edi
push 1
add eax, 0x14
push 4
push eax
call ebx
mov ecx, dword [esi + 0x1c0]
add esp, 0x20
mov eax, dword [ecx + 8]
cmp byte [eax + 0xd], 0
je 0x658878
mov eax, dword [ecx + 4]
cmp byte [eax + 0xd], 0
jne 0x65888c
nop dword [eax]
cmp ecx, dword [eax + 8]
jne 0x65888c
mov dword [esi + 0x1c0], eax
mov ecx, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x658860
jmp 0x65888c
mov edx, dword [eax]
cmp byte [edx + 0xd], 0
jne 0x65888c
mov ecx, dword [edx]
mov eax, edx
mov edx, ecx
cmp byte [ecx + 0xd], 0
je 0x658880
mov dword [esi + 0x1c0], eax
cmp eax, dword [esi + 0x1b8]
jne 0x658825
push edi
lea ecx, [esi + 0x1f8]
call fcn.0064ef80
push edi
lea ecx, [esi + 0x210]
call fcn.0064ef80
push edi
lea ecx, [esi + 0x258]
call fcn.0064ef80
push edi
lea ecx, [esi + 0x270]
call fcn.0064ef80
push edi
lea ecx, [esi + 0x228]
call fcn.0064ef80
push edi
lea ecx, [esi + 0x240]
call fcn.0064ef80
push edi
lea ecx, [esi + 0x288]
call fcn.0064ef80
pop edi
pop esi
pop ebx
pop ebp
ret 8