Function at 0x4370b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e67b9
mov eax, dword fs:[0]
push eax
sub esp, 0x1d0
mov eax, dword [0x519074]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 8]
mov ecx, dword [edi + 0x60]
mov eax, dword [esi + 0x14]
cmp eax, dword [edi + 0x64]
jg 0x437100
jl 0x4370f4
cmp dword [esi + 0x10], ecx
jae 0x437100
mov byte [ebp - 0x189], 0
jmp 0x4371e2
push 0
push 0x989680
push eax
push dword [esi + 0x10]
mov byte [ebp - 0x189], 1
call fcn.004e2a20
mov dword [ebp - 0x194], eax
lea eax, [ebp - 0x194]
push eax
lea eax, [ebp - 0x1b8]
mov dword [ebp - 0x190], edx
push eax
call fcn.004b6524
movups xmm0, xmmword [ebp - 0x1b8]
mov eax, dword [ebp - 0x198]
lea edx, [edi + 0x3c]
mov dword [ebp - 0x1bc], eax
lea ecx, [ebp - 0x28]
movups xmmword [ebp - 0x1dc], xmm0
lea eax, [ebp - 0x1dc]
movups xmm0, xmmword [ebp - 0x1a8]
push eax
movups xmmword [ebp - 0x1cc], xmm0
call fcn.00409f70
add esp, 0xc
mov dword [ebp - 4], 0
lea ecx, [edi + 0x68]
movzx eax, byte [edi + 0x8c]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.004058c0
lea eax, [ebp - 0x194]
mov ecx, edi
push eax
call fcn.004377e0
mov ecx, dword [eax]
mov dword [edi + 0x60], ecx
mov eax, dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x14]
mov dword [edi + 0x64], eax
cmp edx, 0x10
jb 0x4371e2
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4371d8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4372c0
push edx
push ecx
call fcn.00476085
add esp, 8
lea eax, [ebp - 0x148]
mov dword [ebp - 0x150], 0
mov dword [ebp - method.fmt::v6::basic_memory_buffer_char__250__class_std::allocator_char__.virtual_0], vtable.fmt::v6::basic_memory_buffer_char__250__class_std::allocator_char__.0
mov dword [ebp - 0x154], eax
mov dword [ebp - 0x14c], 0xfa
mov dword [ebp - 4], 1
lea eax, [ebp - 0x158]
mov ecx, dword [edi + 8]
push eax
push esi
mov eax, dword [ecx]
call dword [eax + 4]
push dword [edi + 0x70]
mov esi, dword [ebp - 0x150]
push esi
push 1
push dword [ebp - 0x154]
call fcn.004b5b33
add esp, 0x10
cmp eax, esi
jne 0x4372c5
cmp byte [ebp - 0x189], 0
je 0x43725f
cmp word [edi + 0x8e], 0
jbe 0x43725f
mov ecx, edi
call fcn.004375d0
mov ecx, dword [ebp - 0x154]
lea eax, [ebp - 0x148]
mov dword [ebp - method.fmt::v6::basic_memory_buffer_char__250__class_std::allocator_char__.virtual_0], vtable.fmt::v6::basic_memory_buffer_char__250__class_std::allocator_char__.0
cmp ecx, eax
je 0x4372a3
mov edx, dword [ebp - 0x14c]
mov eax, ecx
cmp edx, 0x1000
jb 0x437299
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x43730f
push edx
push ecx
call fcn.00476085
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00476066
mov esp, ebp
pop ebp
ret 4
call fcn.004a3cba
lea edx, [edi + 0x74]
lea ecx, [ebp - 0x170]
call fcn.004053d0
push eax
mov edx, str.Failed_writing_to_file
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x188]
call fcn.0041c420
add esp, 4
mov esi, eax
mov byte [ebp - 4], 3
call fcn.004b53db
lea ecx, [ebp - 0x4c]
push dword [eax]
push esi
call fcn.00404a20
push 0x514768
lea eax, [ebp - 0x4c]
push eax
call fcn.004988b9
call fcn.004a3cba
int3