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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bba30
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.00423f83
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.00478e30
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 0x47a726
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 0x47a6ee
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 0x47a70d
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.00423f83
add eax, 0x10
add esp, 4
mov dword [ebx], eax
call fcn.004626f0
add esp, 8
test eax, eax
jne 0x47a7b1
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 0x47a772
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 0x47a798
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 0x47a7e2
mov dword [ebp - 0x10], 0xc
jmp 0x47a8c5
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 0x47a8be
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 0x47a8c5
mov edx, dword [ebp - 0x28]
ja 0x47a846
test edx, edx
jbe 0x47a8c5
jmp 0x47a846
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 0x47a861
jb 0x47a85c
cmp ecx, edx
jae 0x47a861
mov dword [ebp - 0x14], esi
jmp 0x47a868
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 0x47a7d6
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.00478ae0
push esi
test eax, eax
je 0x47a8b8
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
add edi, dword [ebp - 0x30]
adc ebx, dword [ebp - 0x2c]
cmp ebx, dword [ebp - 0x24]
jb 0x47a840
ja 0x47a8c5
cmp edi, dword [ebp - 0x28]
jb 0x47a840
jmp 0x47a8c5
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 0x47a8d6
push eax
call esi
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x47a8e0
push eax
call esi
mov esi, dword [ebp - 0x10]
test esi, esi
je 0x47a8f1
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 0x47a914
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 0x47a93a
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