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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b4ee0
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x4e5c64]
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.00423f8a
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.00477d90
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 0x479686
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 0x47964e
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 0x47966d
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.00423f8a
add eax, 0x10
add esp, 4
mov dword [ebx], eax
call fcn.00462bc0
add esp, 8
test eax, eax
jne 0x479711
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 0x4796d2
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 0x4796f8
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 0x479742
mov dword [ebp - 0x10], 0xc
jmp 0x479825
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 0x47981e
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 0x479825
mov edx, dword [ebp - 0x28]
ja 0x4797a6
test edx, edx
jbe 0x479825
jmp 0x4797a6
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 0x4797c1
jb 0x4797bc
cmp ecx, edx
jae 0x4797c1
mov dword [ebp - 0x14], esi
jmp 0x4797c8
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 0x479736
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.00477a40
push esi
test eax, eax
je 0x479818
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
add edi, dword [ebp - 0x30]
adc ebx, dword [ebp - 0x2c]
cmp ebx, dword [ebp - 0x24]
jb 0x4797a0
ja 0x479825
cmp edi, dword [ebp - 0x28]
jb 0x4797a0
jmp 0x479825
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 0x479836
push eax
call esi
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x479840
push eax
call esi
mov esi, dword [ebp - 0x10]
test esi, esi
je 0x479851
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 0x479874
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 0x47989a
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