Function at 0x445650
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d4189
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
push esi
mov esi, ecx
push edi
xor eax, eax
xor edi, edi
mov edx, dword [esi + 8]
mov dword [ebp - 0x10], esp
cmp edx, eax
mov dword [ebp - 0x14], eax
jle 0x4456b4
mov ecx, dword [esi + 4]
mov ebx, dword [ebp + 8]
cmp dword [ecx], ebx
jne 0x445691
cmp byte [ecx + 8], 0
je 0x44569b
inc eax
add ecx, 0xc
cmp eax, edx
jl 0x445687
jmp 0x4456b4
mov edi, dword [ecx + 4]
dec edx
cmp eax, edx
je 0x4456b4
lea ecx, [eax + eax*2 + 3]
mov eax, dword [esi + 4]
mov edx, dword [eax + ecx*4 + 4]
lea eax, [eax + ecx*4]
mov dword [ebp - 0x14], edx
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.MSVCRT.dll_time]
add esp, 4
test edi, edi
jle 0x445895
mov eax, dword [esi + 0x23c]
mov dword [ebp - 4], 0
test eax, eax
je 0x445895
mov ecx, dword [ebp - 0x14]
test ecx, ecx
jne 0x445707
push 2
push 0
push eax
call dword [sym.imp.MSVCRT.dll_fseek]
mov ecx, dword [esi + 0x23c]
mov ebx, dword [sym.imp.MSVCRT.dll_ftell]
push ecx
call ebx
add esp, 0x10
mov dword [ebp - 0x14], eax
jmp 0x44570d
mov ebx, dword [sym.imp.MSVCRT.dll_ftell]
mov edx, dword [esi + 0x23c]
push 0
push edi
push edx
call dword [sym.imp.MSVCRT.dll_fseek]
mov eax, dword [esi + 0x23c]
push eax
call ebx
push 0x228
mov dword [ebp - 0x18], eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov edi, eax
add esp, 0x14
mov dword [ebp + 8], edi
xor eax, eax
mov byte [ebp - 4], 1
cmp edi, eax
je 0x445794
lea ecx, [edi + 0x21c]
call fcn.004195d0
xor eax, eax
push 0x56d354
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], eax
call fcn.00419640
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 3
push ecx
lea ecx, [edi + 0x21c]
call fcn.00419760
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.00419620
xor eax, eax
jmp 0x445796
xor edi, edi
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
cmp ecx, edx
jge 0x44587d
cmp edi, eax
je 0x445895
push 0x56d354
lea ecx, [ebp - 0x28]
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], eax
call fcn.00419640
lea eax, [ebp - 0x28]
lea ecx, [edi + 0x21c]
push eax
mov byte [ebp - 4], 4
call fcn.00419760
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.00419620
mov ecx, dword [esi + 0x23c]
lea edx, [ebp + 0xb]
push ecx
push edx
push edi
mov ecx, esi
mov byte [ebp + 0xb], 0
call fcn.00443c80
cmp eax, 0xffffffff
je 0x44587b
mov eax, dword [ebp - 0x1c]
mov edx, dword [edi + 0x10]
mov ecx, dword [ebp + 0xc]
sub eax, edx
cmp eax, ecx
jge 0x445865
mov ecx, dword [esi + 0x23c]
mov byte [ebp + 0xb], 1
push ecx
call ebx
mov edx, dword [ebp - 0x18]
mov ebx, eax
mov eax, dword [esi + 0x23c]
push 0
push edx
push eax
call dword [sym.imp.MSVCRT.dll_fseek]
mov ecx, dword [esi + 0x23c]
lea edx, [ebp + 0xb]
push ecx
push 1
push 1
push edx
call dword [sym.imp.MSVCRT.dll_fwrite]
mov eax, dword [esi + 0x23c]
push 0
push ebx
push eax
call dword [sym.imp.MSVCRT.dll_fseek]
mov ebx, dword [sym.imp.MSVCRT.dll_ftell]
add esp, 0x2c
mov ecx, dword [esi + 0x23c]
push ecx
call ebx
add esp, 4
mov dword [ebp - 0x18], eax
xor eax, eax
jmp 0x44579a
xor eax, eax
cmp edi, eax
je 0x445895
lea ecx, [edi + 0x21c]
call fcn.00419620
push edi
call fcn.004d0379
add esp, 4
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8