Function at 0x4bd9c0
Capabilities:
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51bdb0
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x5a4aa8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
xor edi, edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x18], edi
mov ebx, 1
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x1c], 0xffffffff
mov dword [ebp - 4], edi
cmp esi, edi
je 0x4bdba8
mov eax, dword [ebp + 8]
cmp eax, edi
je 0x4bdba8
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x4bda20
sub eax, edx
sar eax, 1
je 0x4bdba8
push str.Start_to_GetAMPVData...
mov ecx, 0x649e50
call fcn.004918f0
add esp, 4
lea eax, [ebp - 0x18]
push eax
push edi
call fcn.004bdc70
mov ebx, eax
mov dword [ebp - 0x14], ebx
cmp ebx, edi
jne 0x4bdb79
mov eax, dword [ebp - 0x18]
cmp eax, edi
je 0x4bdb79
push eax
call fcn.004da994
add esp, 4
mov edi, eax
mov dword [ebp - 0x20], edi
test edi, edi
jne 0x4bda90
mov dword [ebp - 0x24], 0x7a
push 0x5814b0
lea ecx, [ebp - 0x24]
push ecx
call fcn.004fd5a3
mov edx, dword [ebp - 0x18]
push edx
push 0
push edi
call fcn.004fd670
add esp, 0xc
lea eax, [ebp - 0x18]
push eax
push edi
mov ebx, 2
call fcn.004bdc70
mov esi, eax
mov dword [ebp - 0x14], esi
test esi, esi
jne 0x4bdb46
cmp dword [ebp - 0x18], eax
je 0x4bdb46
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push 0x80
push 4
push 0
push 1
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x1c], esi
cmp esi, 0xffffffff
jne 0x4bdb08
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x28], eax
push 0x5814b0
lea ecx, [ebp - 0x28]
push ecx
call fcn.004fd5a3
push 0
lea edx, [ebp - 0x2c]
push edx
mov eax, dword [ebp - 0x18]
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4bdb33
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0xffffffff
jmp 0x4bdc0c
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0xffffffff
jmp 0x4bdc0c
mov ecx, dword [ebp - 0x18]
push ecx
push str.Fail_to_get_AMPV_data__Data_size__d_____
mov ecx, 0x649e50
call fcn.004918f0
add esp, 8
test esi, esi
jne 0x4bdb68
mov esi, 0xd
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x30], esi
push 0x5814b0
lea edx, [ebp - 0x30]
push edx
call fcn.004fd5a3
push str.Fail_to_get_AMPV_data_size____
mov ecx, 0x649e50
call fcn.004918f0
add esp, 4
cmp ebx, edi
jne 0x4bdb97
mov ebx, 0xd
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x34], ebx
push 0x5814b0
lea eax, [ebp - 0x34]
push eax
call fcn.004fd5a3
mov eax, 0x57
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov dword [ebp - 4], 2
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x4bdc23
push eax
call fcn.004da999
add esp, 4
cmp esi, 0xffffffff
je 0x4bdc2f
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4