Function at 0x4a5170
Capabilities:
Delete file
Get file size

Disassembly:
push 0xffffffffffffffff
push 0x4e712c
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 [0x518b48]
mov ebp, ecx
push edi
push 0
lea ecx, [esp + 0x38]
mov byte [esp + 0x38], al
call fcn.00407190
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.00406db0
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.004a6330
mov ebp, dword [esp + 0x294]
test ebp, ebp
je 0x4a53f3
lea edi, [esp + 0x7c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4a53f3
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.00407190
mov edi, 0x518908
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x518908
lea ecx, [esp + 0x1c]
call fcn.00406db0
mov al, byte [esp + 0xf]
push 0
lea ecx, [esp + 0x28]
mov byte [esp + 0x290], 1
mov byte [esp + 0x28], al
call fcn.00407190
mov edi, 0x518908
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x518908
lea ecx, [esp + 0x2c]
call fcn.00406db0
lea ecx, [esp + 0x58]
mov byte [esp + 0x28c], 2
push ecx
call fcn.004b1420
lea edx, [esp + 0x5c]
push edx
call fcn.004b122e
sub eax, 0x3f480
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x4c]
push eax
call fcn.004b071c
add esp, 0xc
lea ecx, [esp + 0x7c]
mov esi, eax
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x4a531a
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 0x4a531a
lea ecx, [esp + 0x7c]
push ecx
jmp 0x4a53c7
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.004aeeec
lea eax, [esp + 0x19c]
lea ecx, [esp + 0x50]
push eax
lea edx, [esp + 0x68]
push ecx
push edx
call fcn.0040a870
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.00406bb0
push 1
lea ecx, [esp + 0x4c]
mov byte [esp + 0x290], 2
call fcn.00407190
mov eax, dword [esp + 0x18]
cmp eax, esi
jne 0x4a53b0
mov eax, 0x4ea894
lea edx, [esp + 0x7c]
push eax
push edx
call fcn.004b0b80
add esp, 8
test eax, eax
jge 0x4a5425
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.00407190
push 1
lea ecx, [esp + 0x18]
mov byte [esp + 0x290], 0
call fcn.00407190
push 1
lea ecx, [esp + 0x38]
mov dword [esp + 0x290], 0xffffffff
call fcn.00407190
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 [0x5193d8], esi
je 0x4a54c4
mov eax, dword [0x5193d4]
cmp eax, esi
jne 0x4a543f
mov eax, 0x4ea894
lea ecx, [esp + 0x7c]
push eax
push ecx
call fcn.004b0b80
add esp, 8
test eax, eax
jl 0x4a54c4
push 1
lea ecx, [esp + 0x28]
mov byte [esp + 0x290], 1
call fcn.00407190
mov ecx, dword [esp + 0x18]
cmp ecx, esi
je 0x4a5488
mov al, byte [ecx - 1]
test al, al
je 0x4a547e
cmp al, 0xff
je 0x4a547e
dec al
mov byte [ecx - 1], al
jmp 0x4a5488
dec ecx
push ecx
call fcn.004d46f7
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 0x4a5409
mov al, byte [ecx - 1]
test al, al
je 0x4a54b5
cmp al, 0xff
je 0x4a54b5
dec al
mov byte [ecx - 1], al
jmp 0x4a5409
dec ecx
push ecx
call fcn.004d46f7
add esp, 4
jmp 0x4a5409
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 0x4a550b
mov al, byte [ecx - 1]
test al, al
je 0x4a5501
cmp al, 0xff
je 0x4a5501
dec al
mov byte [ecx - 1], al
jmp 0x4a550b
dec ecx
push ecx
call fcn.004d46f7
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 0x4a553b
mov al, byte [ecx - 1]
test al, al
je 0x4a5531
cmp al, 0xff
je 0x4a5531
dec al
mov byte [ecx - 1], al
jmp 0x4a553b
dec ecx
push ecx
call fcn.004d46f7
add esp, 4
mov ecx, dword [esp + 0x38]
cmp ecx, esi
je 0x4a5567
mov al, byte [ecx - 1]
test al, al
je 0x4a555d
cmp al, 0xff
je 0x4a555d
dec al
mov byte [ecx - 1], al
mov eax, 1
jmp 0x4a540b
dec ecx
push ecx
call fcn.004d46f7
add esp, 4
mov eax, 1
jmp 0x4a540b