Function at 0x4ff0d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55eab1
mov eax, dword fs:[0]
push eax
mov eax, 0x106c
call fcn.004bcc80
mov eax, dword [0x5c30d8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x1038]
mov edi, dword [ebp + 0x10]
push 0
push 0
push 0
push 0
push 0
mov dword [ebp - 0x102c], eax
mov dword [ebp - 0x1048], edi
call fcn.004ff9d0
push 0xbb8
push 2
lea ecx, [ebp - 0x1038]
mov dword [ebp - 4], 0
call fcn.004ffa50
push 5
push 3
lea ecx, [ebp - 0x1038]
call fcn.004ffa50
lea ecx, [ebp - 0x1044]
call fcn.00500260
cmp dword [edi + 0x14], 8
mov byte [ebp - 4], 1
jb 0x4ff16c
mov edx, dword [edi]
jmp 0x4ff16e
mov edx, edi
xor eax, eax
mov dword [ebp - 0x1014], 7
mov dword [ebp - 0x1018], 0
mov word [ebp - 0x1028], ax
cmp word [edx], ax
jne 0x4ff194
xor ecx, ecx
jmp 0x4ff1b5
mov ecx, edx
lea edi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4ff1a0
sub ecx, edi
mov edi, dword [ebp - 0x1048]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x1028]
call fcn.00499940
lea eax, [ebp - 0x1028]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x1038]
call fcn.004c5e40
push eax
lea ecx, [ebp - 0x1044]
call fcn.005006d0
test al, al
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x1014]
sete bl
cmp eax, 8
jb 0x4ff20b
inc eax
lea ecx, [ebp - 0x1028]
push eax
push dword [ebp - 0x1028]
call fcn.00499ac0
lea ecx, [ebp - 0x1044]
test bl, bl
jne 0x4ff47a
call fcn.005005b0
test al, al
jne 0x4ff459
lea ecx, [ebp - 0x1044]
call fcn.00500560
mov ebx, eax
test ebx, ebx
je 0x4ff459
mov ecx, dword [esi]
mov eax, dword [esi + 4]
mov dword [ebp - 0x1050], eax
test ecx, ecx
je 0x4ff28a
mov eax, dword [ecx]
sub esp, 8
xorps xmm0, xmm0
movsd qword [esp], xmm0
push 0
push 0
push edi
call dword [eax + 0xc]
mov ecx, dword [esi]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esi]
push dword [ebp - 0x1050]
mov eax, dword [ecx]
call dword [eax + 8]
mov ecx, dword [esi]
sub esp, 8
xorps xmm0, xmm0
mov eax, dword [ecx]
movsd qword [esp], xmm0
push 0
push ebx
push edi
call dword [eax + 0xc]
push 0x1000
lea eax, [ebp - 0x1010]
mov dword [ebp - 0x1030], 0
push 0
push eax
call fcn.00507800
add esp, 0xc
mov dword [ebp - 0x1070], ebx
xorps xmm0, xmm0
mov dword [ebp - 0x106c], 0
movlpd qword [ebp - 0x1068], xmm0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xorps xmm0, xmm0
mov dword [ebp - 0x1078], eax
mov dword [ebp - 0x1074], eax
mov eax, dword [ebp - 0x1064]
movups xmmword [ebp - 0x1060], xmm0
test eax, eax
ja 0x4ff349
jb 0x4ff2f5
cmp dword [ebp - 0x1068], ebx
jae 0x4ff34f
mov ecx, dword [esi]
test ecx, ecx
je 0x4ff30a
mov eax, dword [ecx]
mov eax, dword [eax + 0x18]
call eax
test al, al
jne 0x4ff441
lea eax, [ebp - 0x1078]
push eax
push 0x1000
lea eax, [ebp - 0x1010]
push eax
lea ecx, [ebp - 0x1044]
call fcn.005007a0
mov edi, eax
cmp edi, 0xffffffff
jne 0x4ff3aa
cmp dword [esi], 0
jne 0x4ff45e
mov eax, dword [ebp - 0x1030]
cmp eax, 5
mov eax, dword [ebp - 0x1064]
jbe 0x4ff2e7
cmp dword [ebp - 0x1068], ebx
jne 0x4ff459
test eax, eax
jne 0x4ff459
add dword [esi + 4], ebx
mov ecx, dword [esi]
test ecx, ecx
je 0x4ff38d
movsd xmm0, qword [ebp - 0x1058]
sub esp, 8
mov eax, dword [ecx]
movsd qword [esp], xmm0
push ebx
push ebx
push dword [ebp - 0x1048]
call dword [eax + 0xc]
mov ecx, dword [esi]
push dword [esi + 4]
mov eax, dword [ecx]
call dword [eax + 8]
lea ecx, [ebp - 0x1044]
call fcn.00500290
lea ecx, [ebp - 0x1038]
call fcn.004ffa10
mov al, 1
jmp 0x4ff48c
test edi, edi
je 0x4ff427
push 0
lea eax, [ebp - 0x104c]
mov dword [ebp - 0x104c], 0
push eax
push edi
lea eax, [ebp - 0x1010]
push eax
push dword [ebp - 0x102c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [ebp - 0x104c], edi
je 0x4ff3e2
cmp dword [esi], 0
jne 0x4ff44d
mov ecx, dword [esi]
test ecx, ecx
je 0x4ff338
movsd xmm0, qword [ebp - 0x1058]
sub esp, 8
mov eax, dword [ecx]
movsd qword [esp], xmm0
push dword [ebp - 0x1068]
push ebx
push dword [ebp - 0x1048]
call dword [eax + 0xc]
mov ecx, dword [esi]
mov eax, dword [ebp - 0x1068]
add eax, dword [ebp - 0x1050]
push eax
mov edx, dword [ecx]
call dword [edx + 8]
jmp 0x4ff338
push 5
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 0x1030]
inc eax
mov dword [ebp - 0x1030], eax
jmp 0x4ff33e
sub esp, 0x18
mov ecx, esp
push 0x56e26c
jmp 0x4ff468
sub esp, 0x18
mov ecx, esp
push 0x56e280
jmp 0x4ff468
cmp dword [esi], 0
je 0x4ff474
sub esp, 0x18
mov ecx, esp
push 0x56e25c
call fcn.004a0c80
mov ecx, dword [esi]
mov eax, dword [ecx]
call dword [eax + 0x14]
lea ecx, [ebp - 0x1044]
call fcn.00500290
lea ecx, [ebp - 0x1038]
call fcn.004ffa10
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004bcc20
mov esp, ebp
pop ebp
ret 0xc