Function at 0x64f020
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
push edi
push 1
lea eax, [esi + 0x1f0]
push 4
push eax
call ebx
mov eax, dword [esi + 0x1a4]
lea ecx, [esi + 0x1b0]
add esp, 0x40
mov dword [ecx], eax
push edi
push 1
push 2
push ecx
call ebx
mov eax, dword [esi + 0x1a0]
add esp, 0x10
mov ecx, dword [eax]
mov dword [esi + 0x1a8], ecx
cmp ecx, eax
je 0x64f10a
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 0x64f0e8
mov ecx, dword [eax + 4]
cmp byte [ecx + 0xd], 0
jne 0x64f0fc
nop
cmp eax, dword [ecx + 8]
jne 0x64f0fc
mov dword [esi + 0x1a8], ecx
mov eax, ecx
mov ecx, dword [ecx + 4]
cmp byte [ecx + 0xd], 0
je 0x64f0d0
jmp 0x64f0fc
mov edx, dword [ecx]
cmp byte [edx + 0xd], 0
jne 0x64f0fc
mov eax, dword [edx]
mov ecx, edx
mov edx, eax
cmp byte [eax + 0xd], 0
je 0x64f0f0
mov dword [esi + 0x1a8], ecx
cmp ecx, dword [esi + 0x1a0]
jne 0x64f097
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 0x64f1aa
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 0x64f188
mov ecx, dword [eax + 4]
cmp byte [ecx + 0xd], 0
jne 0x64f19c
nop dword [eax]
cmp eax, dword [ecx + 8]
jne 0x64f19c
mov dword [esi + 0x190], ecx
mov eax, ecx
mov ecx, dword [ecx + 4]
cmp byte [ecx + 0xd], 0
je 0x64f170
jmp 0x64f19c
mov edx, dword [ecx]
cmp byte [edx + 0xd], 0
jne 0x64f19c
mov eax, dword [edx]
mov ecx, edx
mov edx, eax
cmp byte [eax + 0xd], 0
je 0x64f190
mov dword [esi + 0x190], ecx
cmp ecx, dword [esi + 0x188]
jne 0x64f135
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 0x64f24a
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 0x64f228
mov eax, dword [ecx + 4]
cmp byte [eax + 0xd], 0
jne 0x64f23c
nop dword [eax]
cmp ecx, dword [eax + 8]
jne 0x64f23c
mov dword [esi + 0x1c0], eax
mov ecx, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x64f210
jmp 0x64f23c
mov edx, dword [eax]
cmp byte [edx + 0xd], 0
jne 0x64f23c
mov ecx, dword [edx]
mov eax, edx
mov edx, ecx
cmp byte [ecx + 0xd], 0
je 0x64f230
mov dword [esi + 0x1c0], eax
cmp eax, dword [esi + 0x1b8]
jne 0x64f1d5
push edi
lea ecx, [esi + 0x1fc]
call fcn.0064ef80
push edi
lea ecx, [esi + 0x214]
call fcn.0064ef80
push edi
lea ecx, [esi + 0x25c]
call fcn.0064ef80
push edi
lea ecx, [esi + 0x274]
call fcn.0064ef80
push edi
lea ecx, [esi + 0x22c]
call fcn.0064ef80
push edi
lea ecx, [esi + 0x244]
call fcn.0064ef80
push edi
lea ecx, [esi + 0x28c]
call fcn.0064ef80
pop edi
pop esi
pop ebx
pop ebp
ret 8