Function at 0x4a6ad8
Capabilities:
Delete file
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdc0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov byte [ebp - 0x29], dl
mov byte [ebp - 9], al
lea esi, [ebp - 9]
xor ebx, ebx
mov byte [ebp - 0x3d], 0
xor eax, eax
mov al, byte [esi]
mov edx, dword [0x4be4fc]
mov al, byte [edx + eax - 1]
cmp al, 1
jl 0x4a7186
xor edx, edx
mov dl, byte [esi]
mov ecx, dword [0x4be4fc]
cmp al, 3
jg 0x4a7186
mov eax, dword [0x4beb20]
cmp byte [eax], 0
jne 0x4a7186
mov eax, dword [0x4bebcc]
cmp byte [eax], 0
jne 0x4a7186
cmp byte [ebp - 0x29], 0
jne 0x4a6b55
xor eax, eax
mov al, byte [esi]
mov edx, dword [0x4be5f4]
cmp dword [edx + eax*4 - 4], 0
jne 0x4a7186
lea ecx, [ebp - 0x23d]
lea edx, [ebp - 0x13d]
mov al, byte [esi]
call fcn.004a1ee4
cmp byte [ebp - 0x29], 0
jne 0x4a6cf0
lea eax, [ebp - 0x13d]
call fcn.004b1914
test al, al
je 0x4a6cf0
lea eax, [ebp - 0x23d]
call fcn.004b1914
test al, al
je 0x4a6cf0
lea eax, [ebp - 0x23d]
call fcn.004b22dc
cdq
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
add eax, 2
lea eax, [eax + eax*2]
add eax, 0x10
xor edx, edx
cmp edx, dword [esp + 4]
jne 0x4a6bc0
cmp eax, dword [esp]
pop edx
pop eax
jne 0x4a6cf0
mov edx, dword [ebp - 4]
mov al, byte [esi]
call fcn.004a33b0
test al, al
je 0x4a7186
push 0x7f02
push 0
call sub.user32.dll_LoadCursorA
push eax
call sub.user32.dll_SetCursor
lea eax, [ebp - 0x23d]
mov ecx, 0x8000000
mov edx, 0x80000000
call fcn.004adc9c
mov edi, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
add eax, 2
lea eax, [eax + eax*2]
add eax, 0x10
push eax
xor eax, eax
mov al, byte [esi]
mov edx, dword [0x4be48c]
mov eax, dword [edx + eax*4 - 4]
push eax
push edi
call sub.kernel32.dll__hread
mov ebx, eax
push edi
call sub.kernel32.dll_CloseHandle_1
push 0x7f00
push 0
call sub.user32.dll_LoadCursorA
push eax
call sub.user32.dll_SetCursor
xor eax, eax
mov al, byte [esi]
mov edx, dword [0x4be48c]
mov eax, dword [edx + eax*4 - 4]
mov edx, dword [0x4be7fc]
mov ecx, 0x10
call fcn.004ab7fc
test al, al
jne 0x4a6ca6
xor eax, eax
mov al, byte [esi]
mov edx, dword [0x4be48c]
mov eax, dword [edx + eax*4 - 4]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 4]
add edx, 2
lea edx, [edx + edx*2]
add edx, 0x10
call fcn.004066e4
xor eax, eax
mov al, byte [esi]
mov edx, dword [0x4be48c]
mov eax, dword [edx + eax*4 - 4]
mov edx, dword [0x4be7fc]
mov ecx, 0x10
call fcn.004066dc
jmp 0x4a6d02
mov eax, ebx
cdq
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
add eax, 2
lea eax, [eax + eax*2]
add eax, 0x10
xor edx, edx
cmp edx, dword [esp + 4]
jne 0x4a6ccb
cmp eax, dword [esp]
pop edx
pop eax
jbe 0x4a6ce9
jmp 0x4a6ccf
pop edx
pop eax
jle 0x4a6ce9
lea edx, [ebp - 0x23d]
mov ax, 2
call fcn.004acdac
push edi
call sub.kernel32.dll_CloseHandle_1
jmp 0x4a7116
mov bl, 2
jmp 0x4a7036
mov edx, dword [ebp - 4]
mov al, byte [esi]
call fcn.004a33b0
test al, al
je 0x4a7186
mov eax, dword [0x4bebcc]
mov byte [eax], 1
mov eax, dword [0x4beecc]
cmp byte [eax], 0
je 0x4a6d1c
mov eax, dword [0x4be344]
mov byte [eax], 0
mov ax, 0x220
call fcn.004aa600
mov edx, eax
mov eax, dword [0x4bec98]
call fcn.004b81b0
mov eax, dword [0x4bec98]
xor edx, edx
call fcn.004ad8ec
mov byte [ebp - 0x3d], 1
mov dl, byte [ebp - 0x29]
mov eax, dword [ebp - 4]
call fcn.004a3734
mov ebx, eax
test ebx, ebx
je 0x4a7116
mov al, byte [esi]
call fcn.004a1fac
lea eax, [ebp - 0x13d]
push eax
call sub.kernel32.dll_DeleteFileA_1
push 0
lea eax, [ebp - 0x13d]
push eax
call sub.kernel32.dll__lcreat
mov ebx, eax
xor eax, eax
mov al, byte [esi]
mov edx, dword [0x4be3d4]
mov dword [edx + eax*4 - 4], ebx
xor eax, eax
mov al, byte [esi]
mov edx, dword [0x4be3d4]
cmp ebx, 0xffffffff
jne 0x4a6dc3
call sub.kernel32.dll_GetLastError_1
call fcn.004ae200
mov eax, dword [0x4bedb0]
mov edx, 1
call fcn.004b12a8
lea edx, [ebp - 0x13d]
mov ax, 3
call fcn.004acdac
jmp 0x4a7116
push 0x10
mov eax, dword [0x4be7bc]
push eax
xor eax, eax
mov al, byte [esi]
mov edx, dword [0x4be3d4]
mov eax, dword [edx + eax*4 - 4]
push eax
call sub.kernel32.dll__hwrite
lea eax, [ebp - 0x3c]
push eax
call sub.kernel32.dll_GetSystemTimeAsFileTime
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x3c]
push eax
call sub.kernel32.dll_FileTimeToLocalFileTime
push 8
lea eax, [ebp - 0x34]
push eax
xor eax, eax
mov al, byte [esi]
mov edx, dword [0x4be3d4]
mov eax, dword [edx + eax*4 - 4]
push eax
call sub.kernel32.dll__hwrite
mov eax, dword [0x4be4c4]
xor edx, edx
mov dword [eax], edx
mov dword [eax + 4], edx
push 8
mov eax, dword [0x4be4c4]
push eax
xor eax, eax
mov al, byte [esi]
mov edx, dword [0x4be3d4]
mov eax, dword [edx + eax*4 - 4]
push eax
call sub.kernel32.dll__hwrite
xor eax, eax
mov dword [ebp - 0x24], eax
xor eax, eax
mov dword [ebp - 0x28], eax
xor eax, eax
mov dword [ebp - 0x1c], eax
mov al, byte [esi]
call fcn.004ab84c
xor eax, eax
mov al, byte [esi]
mov edx, dword [0x4be4fc]
cmp byte [edx + eax - 1], 3
jne 0x4a6e70
mov dword [ebp - 0x10], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x6c]
mov dword [ebp - 0x14], eax
jmp 0x4a6e7e
mov dword [ebp - 0x10], 2
mov dword [ebp - 0x14], 1
mov eax, dword [0x4be450]
cmp byte [eax], 0
je 0x4a6e8f
mov byte [0x4c254e], 1
xor eax, eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x20]
mov edx, dword [ebp - 4]
mov al, byte [esi]
call fcn.004a03f8
mov edx, dword [ebp - 4]
mov dword [edx + 0x20], ebx
test al, al
je 0x4a6f1e
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov edx, dword [ebp - 4]
sub eax, dword [edx + 8]
mov dword [ebp - 0x20], eax
push ebp
mov eax, dword [0x4bedb0]
mov edx, dword [ebp - 0x14]
call fcn.004a6474
pop ecx
mov ebx, eax
push 0
push 0
push 0x18
xor eax, eax
mov al, byte [esi]
mov edx, dword [0x4be3d4]
mov eax, dword [edx + eax*4 - 4]
push eax
call sub.kernel32.dll_SetFilePointer_1
push 4
lea eax, [ebp - 0x24]
push eax
xor eax, eax
mov al, byte [esi]
mov edx, dword [0x4be3d4]
mov eax, dword [edx + eax*4 - 4]
push eax
call sub.kernel32.dll__hwrite
push 4
lea eax, [ebp - 0x28]
push eax
xor eax, eax
mov al, byte [esi]
mov edx, dword [0x4be3d4]
mov eax, dword [edx + eax*4 - 4]
push eax
call sub.kernel32.dll__hwrite
jmp 0x4a6f20
xor ebx, ebx
test bl, bl
je 0x4a6f2d
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x1c]
mov dword [eax + 0x1c], edx
cmp byte [0x4c254e], 0
je 0x4a6f4f
mov byte [0x4c254e], 0
mov eax, dword [0x4c2548]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
mov dword [0x4c2548], eax
xor eax, eax
mov al, byte [esi]
mov edx, dword [0x4be3d4]
mov eax, dword [edx + eax*4 - 4]
push eax
call sub.kernel32.dll_CloseHandle_1
test bl, bl
jne 0x4a6f84
lea eax, [ebp - 0x13d]
push eax
call sub.kernel32.dll_DeleteFileA_1
lea eax, [ebp - 0x23d]
push eax
call sub.kernel32.dll_DeleteFileA_1
jmp 0x4a7116
push 0x7f02
push 0
call sub.user32.dll_LoadCursorA
push eax
call sub.user32.dll_SetCursor
push 0
lea eax, [ebp - 0x23d]
push eax
call sub.kernel32.dll__lcreat
mov edi, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
add eax, 2
lea eax, [eax + eax*2]
add eax, 0x10
push eax
xor eax, eax
mov al, byte [esi]
mov edx, dword [0x4be48c]
mov eax, dword [edx + eax*4 - 4]
push eax
push edi
call sub.kernel32.dll__hwrite
mov edx, dword [0x4be6b0]
mov dword [edx], eax
push edi
call sub.kernel32.dll_CloseHandle_1
push 0x7f00
push 0
call sub.user32.dll_LoadCursorA
push eax
call sub.user32.dll_SetCursor
mov eax, dword [0x4be6b0]
mov eax, dword [eax]
cdq
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
add eax, 2
lea eax, [eax + eax*2]
xor edx, edx
cmp edx, dword [esp + 4]
jne 0x4a7012
cmp eax, dword [esp]
pop edx
pop eax
jbe 0x4a702a
jmp 0x4a7016
pop edx
pop eax
jle 0x4a702a
lea edx, [ebp - 0x23d]
mov ax, 3
call fcn.004acdac
jmp 0x4a7116
cmp byte [esi], 0x1a
ja 0x4a7036
mov eax, dword [ebp - 8]
inc eax
cmp eax, dword [ebp - 0x20]
lea eax, [ebp - 0x13d]
mov ecx, 0x10000000
mov edx, 0x80000000
call fcn.004adc9c
mov edi, eax
xor eax, eax
mov al, byte [esi]
mov edx, dword [0x4be3d4]
mov dword [edx + eax*4 - 4], edi
push 0
xor eax, eax
mov al, byte [esi]
mov edx, dword [0x4be3d4]
push edi
call sub.kernel32.dll_GetFileSize_1
xor edx, edx
mov dl, byte [esi]
mov ecx, dword [0x4be6f0]
mov dword [ecx + edx*4 - 4], eax
push 0
push 0
push 0
push 0x8000002
push 0
xor eax, eax
mov al, byte [esi]
mov edx, dword [0x4be3d4]
mov eax, dword [edx + eax*4 - 4]
push eax
call sub.kernel32.dll_CreateFileMappingA
mov edi, eax
xor eax, eax
mov al, byte [esi]
mov edx, dword [0x4be440]
mov dword [edx + eax*4 - 4], edi
xor eax, eax
mov al, byte [esi]
mov edx, dword [0x4be440]
test edi, edi
jne 0x4a70db
lea edx, [ebp - 0x13d]
mov ax, 9
call fcn.004acdac
xor eax, eax
mov al, byte [esi]
mov edx, dword [0x4be5f4]
xor ecx, ecx
mov dword [edx + eax*4 - 4], ecx
jmp 0x4a7116
push 0
push 0
push 0
push 4
xor eax, eax
mov al, byte [esi]
mov edx, dword [0x4be440]
push edi
call sub.kernel32.dll_MapViewOfFile
xor edx, edx
mov dl, byte [esi]
mov ecx, dword [0x4be5f4]
mov dword [ecx + edx*4 - 4], eax
cmp byte [ebp - 0x3d], 0
je 0x4a710c
call fcn.004adbe0
mov eax, dword [0x4bebcc]
mov byte [eax], 0
jmp 0x4a7186
xor eax, eax
mov al, byte [esi]
mov edx, dword [0x4be48c]
mov eax, dword [edx + eax*4 - 4]
test eax, eax
je 0x4a714d
push 0x4000
mov edx, dword [ebp - 4]
mov edx, dword [edx + 4]
add edx, 2
lea edx, [edx + edx*2]
add edx, 0x10
push edx
xor edx, edx
mov dl, byte [esi]
mov ecx, dword [0x4be48c]
push eax
call sub.kernel32.dll_VirtualFree_1
xor eax, eax
mov al, byte [esi]
mov edx, dword [0x4be48c]
xor ecx, ecx
mov dword [edx + eax*4 - 4], ecx
mov edx, dword [0x4be5f4]
xor ecx, ecx
mov dword [edx + eax*4 - 4], ecx
mov eax, dword [0x4bebcc]
mov byte [eax], 0
mov eax, dword [ebp - 4]
call fcn.004a381c
cmp byte [ebp - 0x3d], 0
je 0x4a7184
call fcn.004adbe0
xor ebx, ebx
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret