Function at 0x47b100
Capabilities:
Delete file
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push 0x80
push 4
push ebx
push 1
mov esi, eax
mov eax, dword [ebp + 8]
push 0xc0000000
push eax
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 4], edi
cmp edi, 0xffffffff
jne 0x47b160
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47b152
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 7
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp + 0xc]
and ecx, dword [ebp + 0x10]
cmp ecx, 0xffffffff
jne 0x47b1dc
lea edx, [ebp - 0x10]
push edx
push edi
mov dword [ebp - 0x10], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
jne 0x47b185
or eax, eax
or ecx, 0xffffffff
jmp 0x47b187
xor ecx, ecx
push ebx
push eax
push ecx
push 2
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebx, eax
test ebx, ebx
jne 0x47b1a6
mov dword [ebp - 8], 8
jmp 0x47b342
lea eax, [ebp - 0x10]
push eax
push edi
mov dword [ebp - 0x10], 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
jne 0x47b1c4
or eax, eax
or ecx, 0xffffffff
jmp 0x47b1c6
xor ecx, ecx
lea edx, [ebp + 0xc]
push edx
push ecx
push eax
push ebx
call fcn.00479000
add esp, 0x10
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [esi + 0x10]
sub ebx, dword [esi + 0x20]
mov edi, dword [esi + 0x14]
sbb edi, dword [esi + 0x24]
add ebx, dword [ebp + 0xc]
mov ecx, dword [ebp - 4]
adc edi, dword [ebp + 0x10]
push 0
lea eax, [ebp - 0xc]
push eax
push ebx
push ecx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0xc], edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x47b216
mov dword [ebp - 8], 0xc
jmp 0x47b33f
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
push 0
lea ecx, [ebp - 0xc]
push ecx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x47b24b
mov dword [ebp - 8], 0xc
jmp 0x47b33f
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov eax, dword [esi + 0x20]
mov dword [ebp - 0x1c], edx
mov edx, dword [esi + 0x70]
mov dword [ebp - 0x20], ecx
mov ecx, dword [esi + 0x24]
push edx
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], ecx
call fcn.004a5222
add esp, 4
mov dword [ebp - 0x10], eax
cmp dword [ebp + 0x10], edi
ja 0x47b333
jb 0x47b286
cmp dword [ebp + 0xc], ebx
jae 0x47b333
mov ecx, dword [esi + 0x70]
mov edx, dword [ebp - 0x20]
xor eax, eax
add ecx, edx
adc eax, dword [ebp - 0x1c]
cmp eax, edi
ja 0x47b2a5
jb 0x47b29d
cmp ecx, ebx
jae 0x47b2a5
mov eax, dword [esi + 0x70]
mov dword [ebp + 0x10], eax
jmp 0x47b2aa
sub ebx, edx
mov dword [ebp + 0x10], ebx
mov eax, dword [ebp + 0x10]
mov ecx, dword [esi + 0x2c]
cdq
push edx
mov ebx, eax
push ebx
mov dword [ebp - 0x24], edx
mov edx, dword [esi + 0x28]
push ecx
push edx
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x28], eax
call fcn.004790a0
test eax, eax
je 0x47b32c
mov eax, dword [esi + 0x30]
sub eax, dword [esi + 0x38]
mov ecx, dword [ebp - 0x10]
add eax, dword [esi + 0x28]
push ebx
push eax
push ecx
call fcn.004a4da0
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x10]
add esp, 0xc
add dword [esi + 0x28], ebx
push 0
lea edx, [ebp - 0x14]
adc dword [esi + 0x2c], eax
mov eax, dword [ebp + 0x10]
push edx
mov edx, dword [ebp - 4]
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x1c]
add ecx, ebx
adc eax, dword [ebp - 0x24]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], eax
cmp eax, edi
ja 0x47b333
jb 0x47b324
cmp ecx, dword [ebp - 0x30]
jae 0x47b333
mov ebx, dword [ebp - 0x30]
jmp 0x47b286
mov dword [ebp - 8], 8
mov eax, dword [ebp - 0x10]
push eax
call fcn.004a5105
add esp, 4
mov edi, dword [ebp - 4]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 8]
test esi, esi
je 0x47b35a
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x47b379
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc