Function at 0x4660b0
Capabilities:
Get file size
Write file on windows

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c5f0e
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x48
mov eax, dword [0x4f6040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov edx, dword [ebx + 8]
mov dword [ebp - 0x48], 0
mov eax, dword [edi + 0x28]
test eax, eax
je 0x4662bd
cmp eax, 0xffffffff
je 0x4662bd
cmp dword [edx + 0x10], 0
lea eax, [edx + 0x10]
jne 0x46611e
xor eax, eax
jmp 0x4662c2
xorps xmm0, xmm0
mov dword [ebp - 0x1c], 0
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
mov dword [ebp - 4], 0
mov ecx, dword [edi + 0x1c]
cmp ecx, 0xffffffff
je 0x4661b3
cmp dword [edx + 0x14], 7
jbe 0x46615c
mov edx, dword [edx]
mov eax, dword [eax]
mov byte [ebp - 4], 1
push ecx
push ecx
push eax
lea ecx, [ebp - 0x44]
call fcn.00433550
add esp, 0xc
mov dword [ebp - 0x48], 1
lea ecx, [ebp - 0x2c]
call fcn.0040ff00
movups xmm0, xmmword [ebp - 0x44]
mov eax, 1
mov byte [ebp - 0x44], 0
movups xmmword [ebp - 0x2c], xmm0
movq xmm0, qword [ebp - 0x34]
mov dword [ebp - 0x48], eax
and eax, 0xfffffffe
movq qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0xf
mov dword [ebp - 0x48], eax
jmp 0x4661f7
push dword [edi + 0x18]
lea ecx, [ebp - 0x44]
call fcn.004653b0
add esp, 4
mov esi, eax
mov byte [ebp - 4], 2
lea eax, [ebp - 0x2c]
cmp eax, esi
je 0x4661f7
mov ecx, eax
call fcn.0040ff00
movups xmm0, xmmword [esi]
movups xmmword [ebp - 0x2c], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x1c], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x44]
call fcn.0040ff00
cmp dword [ebp - 0x1c], 0
jne 0x466210
mov esi, 3
jmp 0x466270
xor esi, esi
push esi
push dword [edi + 0x28]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
test eax, eax
je 0x46622f
push dword [edi + 0x18]
lea ecx, [ebp - 0x54]
call fcn.00463970
movzx esi, word [eax + 4]
mov ecx, dword [ebp - 0x1c]
lea edx, [ebp - 0x4c]
sub ecx, esi
mov dword [ebp - 0x4c], 0
cmp dword [ebp - 0x18], 0xf
lea eax, [ebp - 0x2c]
push 0
cmova eax, dword [ebp - 0x2c]
push edx
push ecx
add eax, esi
push eax
push dword [edi + 0x28]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x46626b
mov eax, dword [ebp - 0x1c]
sub eax, esi
cmp dword [ebp - 0x4c], eax
jne 0x46626b
xor esi, esi
jmp 0x466270
mov esi, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x18]
cmp ecx, 0xf
jbe 0x4662a7
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x46629d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4662e2
push ecx
push edx
call fcn.00486428
add esp, 8
mov dword [ebp - 0x1c], 0
mov eax, esi
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
jmp 0x4662c2
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0048641a
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4
call fcn.0048b78f
int3