Function at 0x446950
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d4c79
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 0x4469b4
mov ecx, dword [esi + 4]
mov ebx, dword [ebp + 8]
cmp dword [ecx], ebx
jne 0x446991
cmp byte [ecx + 8], 0
je 0x44699b
inc eax
add ecx, 0xc
cmp eax, edx
jl 0x446987
jmp 0x4469b4
mov edi, dword [ecx + 4]
dec edx
cmp eax, edx
je 0x4469b4
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 0x446b95
mov eax, dword [esi + 0x23c]
mov dword [ebp - 4], 0
test eax, eax
je 0x446b95
mov ecx, dword [ebp - 0x14]
test ecx, ecx
jne 0x446a07
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 0x446a0d
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 0x446a94
lea ecx, [edi + 0x21c]
call fcn.004195b0
xor eax, eax
push 0x56f5c4
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.00419620
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 3
push ecx
lea ecx, [edi + 0x21c]
call fcn.00419740
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.00419600
xor eax, eax
jmp 0x446a96
xor edi, edi
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
cmp ecx, edx
jge 0x446b7d
cmp edi, eax
je 0x446b95
push 0x56f5c4
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.00419620
lea eax, [ebp - 0x28]
lea ecx, [edi + 0x21c]
push eax
mov byte [ebp - 4], 4
call fcn.00419740
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.00419600
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.00444f80
cmp eax, 0xffffffff
je 0x446b7b
mov eax, dword [ebp - 0x1c]
mov edx, dword [edi + 0x10]
mov ecx, dword [ebp + 0xc]
sub eax, edx
cmp eax, ecx
jge 0x446b65
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 0x446a9a
xor eax, eax
cmp edi, eax
je 0x446b95
lea ecx, [edi + 0x21c]
call fcn.00419600
push edi
call fcn.004d0de9
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