Function at 0x47ad80
Capabilities:
Delete file
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bc170
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x4eec64]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 1
mov eax, dword [ebp + 0x10]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x1c], esp
mov esi, esp
push eax
call fcn.00423fab
add eax, 0x10
mov dword [esi], eax
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
add esp, 4
push eax
push esi
call fcn.00479550
mov edi, eax
xor eax, eax
or ebx, 0xffffffff
mov dword [ebp - 0x14], edi
mov dword [ebp + 0xc], ebx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], eax
cmp edi, eax
jne 0x47ae46
mov byte [ebp - 4], al
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, ebx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47ae0e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], ebx
mov eax, dword [ebp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebx
dec ebx
test ebx, ebx
jg 0x47ae2d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 5
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [ebp + 0x14]
lea ecx, [ebp + 0xc]
push ecx
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x24], esp
mov ebx, esp
push eax
call fcn.00423fab
add eax, 0x10
add esp, 4
mov dword [ebx], eax
call fcn.00462f60
add esp, 8
test eax, eax
jne 0x47aed1
mov byte [ebp - 4], al
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x47ae92
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47aeb8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 7
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov ebx, dword [edi + 0x10]
mov edi, dword [edi + 0x14]
mov edx, dword [ebp + 0xc]
push 0
lea ecx, [ebp - 0x1c]
push ecx
push ebx
push edx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x1c], edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x47af02
mov dword [ebp - 0x10], 0xc
jmp 0x47afe5
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov ecx, dword [ebp + 0xc]
push 0
push ebx
push edi
push 4
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x47afde
mov edx, dword [ebp - 0x14]
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x24]
xor edi, edi
xor ebx, ebx
add eax, dword [edx]
adc ecx, dword [edx + 4]
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], ecx
cmp dword [ebp - 0x24], ebx
jb 0x47afe5
mov edx, dword [ebp - 0x28]
ja 0x47af66
test edx, edx
jbe 0x47afe5
jmp 0x47af66
mov esi, dword [ebp + 8]
mov edx, dword [ebp - 0x28]
mov esi, dword [esi + 0x70]
xor eax, eax
mov ecx, esi
add ecx, edi
adc eax, ebx
cmp eax, dword [ebp - 0x24]
ja 0x47af81
jb 0x47af7c
cmp ecx, edx
jae 0x47af81
mov dword [ebp - 0x14], esi
jmp 0x47af88
mov eax, edx
sub eax, edi
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
push edx
push edi
push ebx
push 6
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
je 0x47aef6
mov eax, dword [ebp - 0x14]
cdq
push edx
push eax
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x2c], edx
call fcn.00479200
push esi
test eax, eax
je 0x47afd8
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
add edi, dword [ebp - 0x30]
adc ebx, dword [ebp - 0x2c]
cmp ebx, dword [ebp - 0x24]
jb 0x47af60
ja 0x47afe5
cmp edi, dword [ebp - 0x28]
jb 0x47af60
jmp 0x47afe5
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [ebp - 0x10], 8
mov eax, dword [ebp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, 0xffffffff
je 0x47aff6
push eax
call esi
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x47b000
push eax
call esi
mov esi, dword [ebp - 0x10]
test esi, esi
je 0x47b011
mov ecx, dword [ebp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [ebp - 4], 0
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x47b034
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47b05a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10