Function at 0x4a40a0
Capabilities:
Delete file
Get file size

Disassembly:
push 0xffffffffffffffff
push 0x4e5f2c
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 [0x517568]
mov ebp, ecx
push edi
push 0
lea ecx, [esp + 0x38]
mov byte [esp + 0x38], al
call fcn.00406ab0
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.00406740
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.004a5260
mov ebp, dword [esp + 0x294]
test ebp, ebp
je 0x4a4323
lea edi, [esp + 0x7c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4a4323
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.00406ab0
mov edi, 0x517348
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x517348
lea ecx, [esp + 0x1c]
call fcn.00406740
mov al, byte [esp + 0xf]
push 0
lea ecx, [esp + 0x28]
mov byte [esp + 0x290], 1
mov byte [esp + 0x28], al
call fcn.00406ab0
mov edi, 0x517348
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x517348
lea ecx, [esp + 0x2c]
call fcn.00406740
lea ecx, [esp + 0x58]
mov byte [esp + 0x28c], 2
push ecx
call fcn.004b01b0
lea edx, [esp + 0x5c]
push edx
call fcn.004affbe
sub eax, 0x3f480
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x4c]
push eax
call fcn.004afdec
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 0x4a424a
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 0x4a424a
lea ecx, [esp + 0x7c]
push ecx
jmp 0x4a42f7
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.004add1e
lea eax, [esp + 0x19c]
lea ecx, [esp + 0x50]
push eax
lea edx, [esp + 0x68]
push ecx
push edx
call fcn.00409ef0
add esp, 0x28
mov ecx, dword [0x4e9898]
xor esi, esi
push ecx
push esi
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x298], 3
call fcn.00406540
push 1
lea ecx, [esp + 0x4c]
mov byte [esp + 0x290], 2
call fcn.00406ab0
mov eax, dword [esp + 0x18]
cmp eax, esi
jne 0x4a42e0
mov eax, 0x4e9894
lea edx, [esp + 0x7c]
push eax
push edx
call fcn.004af770
add esp, 8
test eax, eax
jge 0x4a4355
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.00406ab0
push 1
lea ecx, [esp + 0x18]
mov byte [esp + 0x290], 0
call fcn.00406ab0
push 1
lea ecx, [esp + 0x38]
mov dword [esp + 0x290], 0xffffffff
call fcn.00406ab0
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 [0x517dd0], esi
je 0x4a43f4
mov eax, dword [0x517dcc]
cmp eax, esi
jne 0x4a436f
mov eax, 0x4e9894
lea ecx, [esp + 0x7c]
push eax
push ecx
call fcn.004af770
add esp, 8
test eax, eax
jl 0x4a43f4
push 1
lea ecx, [esp + 0x28]
mov byte [esp + 0x290], 1
call fcn.00406ab0
mov ecx, dword [esp + 0x18]
cmp ecx, esi
je 0x4a43b8
mov al, byte [ecx - 1]
test al, al
je 0x4a43ae
cmp al, 0xff
je 0x4a43ae
dec al
mov byte [ecx - 1], al
jmp 0x4a43b8
dec ecx
push ecx
call fcn.004d35e7
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 0x4a4339
mov al, byte [ecx - 1]
test al, al
je 0x4a43e5
cmp al, 0xff
je 0x4a43e5
dec al
mov byte [ecx - 1], al
jmp 0x4a4339
dec ecx
push ecx
call fcn.004d35e7
add esp, 4
jmp 0x4a4339
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 0x4a443b
mov al, byte [ecx - 1]
test al, al
je 0x4a4431
cmp al, 0xff
je 0x4a4431
dec al
mov byte [ecx - 1], al
jmp 0x4a443b
dec ecx
push ecx
call fcn.004d35e7
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 0x4a446b
mov al, byte [ecx - 1]
test al, al
je 0x4a4461
cmp al, 0xff
je 0x4a4461
dec al
mov byte [ecx - 1], al
jmp 0x4a446b
dec ecx
push ecx
call fcn.004d35e7
add esp, 4
mov ecx, dword [esp + 0x38]
cmp ecx, esi
je 0x4a4497
mov al, byte [ecx - 1]
test al, al
je 0x4a448d
cmp al, 0xff
je 0x4a448d
dec al
mov byte [ecx - 1], al
mov eax, 1
jmp 0x4a433b
dec ecx
push ecx
call fcn.004d35e7
add esp, 4
mov eax, 1
jmp 0x4a433b