Function at 0x4a5010
Capabilities:
Delete file
Get file size

Disassembly:
push 0xffffffffffffffff
push 0x4e6f9c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x278
mov al, byte [esp + 3]
push ebp
push esi
mov esi, dword [0x518b28]
mov ebp, ecx
push edi
push 0
lea ecx, [esp + 0x38]
mov byte [esp + 0x38], al
call fcn.00407180
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push esi
lea ecx, [esp + 0x3c]
call fcn.00406da0
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x7d]
mov byte [esp + 0x7c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x7c]
mov dword [esp + 0x28c], 0
push ecx
mov ecx, ebp
stosb byte es:[edi], al
call fcn.004a61d0
mov ebp, dword [esp + 0x294]
test ebp, ebp
je 0x4a5293
lea edi, [esp + 0x7c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4a5293
mov ecx, 0x40
lea edi, [esp + 0x181]
mov byte [esp + 0x180], al
mov dl, byte [esp + 0xf]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0
lea ecx, [esp + 0x18]
stosb byte es:[edi], al
mov byte [esp + 0x18], dl
call fcn.00407180
mov edi, 0x5188e8
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x5188e8
lea ecx, [esp + 0x1c]
call fcn.00406da0
mov al, byte [esp + 0xf]
push 0
lea ecx, [esp + 0x28]
mov byte [esp + 0x290], 1
mov byte [esp + 0x28], al
call fcn.00407180
mov edi, 0x5188e8
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x5188e8
lea ecx, [esp + 0x2c]
call fcn.00406da0
lea ecx, [esp + 0x58]
mov byte [esp + 0x28c], 2
push ecx
call fcn.004b12c0
lea edx, [esp + 0x5c]
push edx
call fcn.004b10ce
sub eax, 0x3f480
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x4c]
push eax
call fcn.004b05bc
add esp, 0xc
lea ecx, [esp + 0x7c]
mov esi, eax
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x4a51ba
lea edx, [esp + 0x10]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push edi
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
and eax, 0xfff00000
cmp eax, 0x6400000
jbe 0x4a51ba
lea ecx, [esp + 0x7c]
push ecx
jmp 0x4a5267
mov ecx, dword [esi + 4]
mov eax, 0x88888889
imul ecx
add edx, ecx
mov ecx, dword [esi + 8]
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, dword [esi + 0x10]
push edx
mov edx, dword [esi + 0xc]
push ecx
mov ecx, dword [esi + 0x14]
inc eax
push edx
add ecx, 0x76c
push eax
push ecx
lea edx, [esp + 0x194]
push str.ProData__d__02d__02d__02d__02d.dat
push edx
call fcn.004aed8c
lea eax, [esp + 0x19c]
lea ecx, [esp + 0x50]
push eax
lea edx, [esp + 0x68]
push ecx
push edx
call fcn.0040a840
add esp, 0x28
mov ecx, dword [0x4ea898]
xor esi, esi
push ecx
push esi
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x298], 3
call fcn.00406ba0
push 1
lea ecx, [esp + 0x4c]
mov byte [esp + 0x290], 2
call fcn.00407180
mov eax, dword [esp + 0x18]
cmp eax, esi
jne 0x4a5250
mov eax, 0x4ea894
lea edx, [esp + 0x7c]
push eax
push edx
call fcn.004b0a20
add esp, 8
test eax, eax
jge 0x4a52c5
lea eax, [esp + 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 1
lea ecx, [esp + 0x28]
mov byte [esp + 0x290], 1
call fcn.00407180
push 1
lea ecx, [esp + 0x18]
mov byte [esp + 0x290], 0
call fcn.00407180
push 1
lea ecx, [esp + 0x38]
mov dword [esp + 0x290], 0xffffffff
call fcn.00407180
xor eax, eax
mov ecx, dword [esp + 0x284]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x284
ret 4
cmp dword [0x5193b8], esi
je 0x4a5364
mov eax, dword [0x5193b4]
cmp eax, esi
jne 0x4a52df
mov eax, 0x4ea894
lea ecx, [esp + 0x7c]
push eax
push ecx
call fcn.004b0a20
add esp, 8
test eax, eax
jl 0x4a5364
push 1
lea ecx, [esp + 0x28]
mov byte [esp + 0x290], 1
call fcn.00407180
mov ecx, dword [esp + 0x18]
cmp ecx, esi
je 0x4a5328
mov al, byte [ecx - 1]
test al, al
je 0x4a531e
cmp al, 0xff
je 0x4a531e
dec al
mov byte [ecx - 1], al
jmp 0x4a5328
dec ecx
push ecx
call fcn.004d4597
add esp, 4
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x18], esi
cmp ecx, esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
je 0x4a52a9
mov al, byte [ecx - 1]
test al, al
je 0x4a5355
cmp al, 0xff
je 0x4a5355
dec al
mov byte [ecx - 1], al
jmp 0x4a52a9
dec ecx
push ecx
call fcn.004d4597
add esp, 4
jmp 0x4a52a9
lea edi, [esp + 0x7c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x28]
xor esi, esi
cmp ecx, esi
je 0x4a53ab
mov al, byte [ecx - 1]
test al, al
je 0x4a53a1
cmp al, 0xff
je 0x4a53a1
dec al
mov byte [ecx - 1], al
jmp 0x4a53ab
dec ecx
push ecx
call fcn.004d4597
add esp, 4
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x28], esi
cmp ecx, esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
je 0x4a53db
mov al, byte [ecx - 1]
test al, al
je 0x4a53d1
cmp al, 0xff
je 0x4a53d1
dec al
mov byte [ecx - 1], al
jmp 0x4a53db
dec ecx
push ecx
call fcn.004d4597
add esp, 4
mov ecx, dword [esp + 0x38]
cmp ecx, esi
je 0x4a5407
mov al, byte [ecx - 1]
test al, al
je 0x4a53fd
cmp al, 0xff
je 0x4a53fd
dec al
mov byte [ecx - 1], al
mov eax, 1
jmp 0x4a52ab
dec ecx
push ecx
call fcn.004d4597
add esp, 4
mov eax, 1
jmp 0x4a52ab