Function at 0x485bb0
Capabilities:
Check if file exists
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x4ebc4d
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov eax, dword [0x670f1c]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov esi, ecx
mov edi, 8
cmp dword [esi + 0x198c6], edi
jb 0x485bee
mov eax, dword [esi + 0x198b2]
jmp 0x485bf4
lea eax, [esi + 0x198b2]
push eax
lea ecx, [esp + 0x18]
call fcn.00406e40
cmp dword [esi + 0x198aa], edi
mov dword [esp + 0x2c], 0
jb 0x485c16
mov eax, dword [esi + 0x19896]
jmp 0x485c1c
lea eax, [esi + 0x19896]
push eax
lea ecx, [esp + 0x20]
call fcn.00406e40
mov eax, dword [esp + 0x14]
push 0x5c
push eax
mov byte [esp + 0x34], 1
call fcn.004c67c5
add esp, 8
test eax, eax
jne 0x485c43
or eax, 0xffffffff
jmp 0x485c49
sub eax, dword [esp + 0x14]
sar eax, 1
add eax, 1
push eax
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00406390
mov ebp, dword [sym.imp.KERNEL32.dll_SetLastError]
push 0
mov byte [esp + 0x30], 2
xor bl, bl
call ebp
mov edi, dword [esp + 0x18]
cmp dword [edi - 4], 1
jle 0x485c87
mov edx, dword [edi - 0xc]
push edx
lea ecx, [esp + 0x1c]
call fcn.00406b50
mov edi, dword [esp + 0x18]
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push edi
call fcn.00406e40
mov ecx, esi
call fcn.00483e30
test al, al
jne 0x485ef0
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, 0x7b
je 0x485d72
cmp eax, 0x10b
je 0x485d72
cmp dword [edi - 4], 1
jle 0x485cd6
mov eax, dword [edi - 0xc]
push eax
lea ecx, [esp + 0x1c]
call fcn.00406b50
mov edi, dword [esp + 0x18]
call ebx
push eax
push edi
push 0x5063b0
add esi, 0x192ac
push esi
call fcn.00418e60
lea eax, [edi - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0x3c], 1
add esp, 0x10
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x485d0f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0x2c], 0
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x485d34
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x2c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x485d5c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
mov eax, dword [esp + 0x1c]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x24], esp
mov edi, esp
push eax
call fcn.004069f0
add esp, 4
lea ecx, [esp + 0x24]
add eax, 0x10
push ecx
mov ecx, esi
mov dword [edi], eax
call fcn.004833b0
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x30], 3
call fcn.00407450
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x2c], 2
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x485dce
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x24], esp
mov edi, esp
push eax
call fcn.004069f0
add esp, 4
lea ecx, [esp + 0x24]
add eax, 0x10
push ecx
mov ecx, esi
mov dword [edi], eax
call fcn.004833b0
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x30], 4
call fcn.00407450
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x2c], 2
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x485e2a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x14]
push 0x5c
push ecx
mov bl, 1
call fcn.004c67c5
add esp, 8
test eax, eax
jne 0x485e44
or eax, 0xffffffff
jmp 0x485e4a
sub eax, dword [esp + 0x14]
sar eax, 1
add eax, 1
push eax
lea edx, [esp + 0x24]
push edx
lea ecx, [esp + 0x1c]
call fcn.00406390
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x30], 5
call fcn.00407450
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x2c], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x485e90
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0
call ebp
mov edi, dword [esp + 0x18]
cmp dword [edi - 4], 1
jle 0x485eaf
mov ecx, dword [edi - 0xc]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00406b50
mov edi, dword [esp + 0x18]
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push edi
call fcn.00406e40
mov ecx, esi
call fcn.00483e30
test al, al
jne 0x485ef0
cmp dword [edi - 4], 1
jle 0x485ede
mov edx, dword [edi - 0xc]
push edx
lea ecx, [esp + 0x1c]
call fcn.00406b50
mov edi, dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push 0x506430
jmp 0x485cdf
mov eax, dword [esp + 0x14]
cmp dword [eax - 4], 1
jle 0x485f0b
mov ecx, dword [eax - 0xc]
push ecx
lea ecx, [esp + 0x18]
call fcn.00406b50
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x486144
push eax
call ebp
mov eax, dword [esp + 0x14]
cmp dword [eax - 4], 1
jle 0x485f38
mov edx, dword [eax - 0xc]
push edx
lea ecx, [esp + 0x18]
call fcn.00406b50
mov eax, dword [esp + 0x14]
mov ebp, dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
push 0x80
push 1
push 0
push 2
push 0x40000000
push eax
call ebp
cmp eax, 0xffffffff
jne 0x486265
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x50
je 0x486122
test bl, bl
je 0x485fae
push eax
lea ecx, [esp + 0x18]
call fcn.00410900
push eax
push 0x5064b0
add esi, 0x192ac
push esi
call fcn.00418e60
add esp, 0x10
lea ecx, [esp + 0x18]
call fcn.00406960
lea ecx, [esp + 0x1c]
call fcn.00406960
lea ecx, [esp + 0x14]
call fcn.00406960
jmp 0x485d5c
cmp eax, 0x7b
je 0x485fcc
cmp eax, 0x10b
je 0x485fcc
push eax
lea ecx, [esp + 0x18]
call fcn.00410900
push eax
push 0x506530
jmp 0x485f7f
push ecx
lea eax, [esp + 0x20]
mov ecx, esp
mov dword [esp + 0x24], esp
push eax
call fcn.004069d0
lea ecx, [esp + 0x24]
push ecx
mov ecx, esi
call fcn.004833b0
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x30], 6
call fcn.00407450
lea ecx, [esp + 0x20]
mov byte [esp + 0x2c], 2
call fcn.00406960
push ecx
lea edx, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x24], esp
push edx
call fcn.004069d0
lea eax, [esp + 0x24]
push eax
mov ecx, esi
call fcn.004833b0
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x30], 7
call fcn.00407450
lea ecx, [esp + 0x20]
mov byte [esp + 0x2c], 2
call fcn.00406960
push 0x5c
lea ecx, [esp + 0x18]
call fcn.0044b740
add eax, 1
push eax
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00406390
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x30], 8
call fcn.00407450
lea ecx, [esp + 0x20]
mov byte [esp + 0x2c], 2
call fcn.00406960
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea ecx, [esp + 0x18]
call fcn.00410900
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push eax
call fcn.00406e40
mov ecx, esi
call fcn.00483e30
test al, al
jne 0x4860be
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [esp + 0x1c]
call fcn.00410900
push eax
push 0x5065b0
jmp 0x485f7f
lea ecx, [esp + 0x14]
call fcn.00410900
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x48611e
push eax
push 0x80
push 1
push eax
push 2
push 0x40000000
lea ecx, [esp + 0x2c]
call fcn.00410900
push eax
call ebp
cmp eax, 0xffffffff
jne 0x486117
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 0x50
je 0x48611e
call edi
push eax
lea ecx, [esp + 0x18]
call fcn.00410900
push eax
push 0x506630
jmp 0x485f7f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
cmp dword [eax - 4], 1
jle 0x48613d
mov edx, dword [eax - 0xc]
push edx
lea ecx, [esp + 0x18]
call fcn.00406b50
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edx, dword [esp + 0x14]
cmp dword [edx - 4], 1
jle 0x48615f
mov eax, dword [edx - 0xc]
push eax
lea ecx, [esp + 0x18]
call fcn.00406b50
mov edx, dword [esp + 0x14]
mov eax, edx
lea ebp, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x486164
sub eax, ebp
sar eax, 1
push eax
push edx
lea ecx, [esi + 0x198ae]
call fcn.00401930
mov edx, dword [esp + 0x1c]
cmp dword [edx - 4], 1
jle 0x48619b
mov ecx, dword [edx - 0xc]
push ecx
lea ecx, [esp + 0x20]
call fcn.00406b50
mov edx, dword [esp + 0x1c]
sub esp, 0x1c
mov ecx, esp
xor eax, eax
mov dword [ecx + 0x14], eax
mov dword [ecx + 0x18], 7
mov word [ecx + 4], ax
mov eax, edx
mov dword [esp + 0x3c], esp
lea ebx, [eax + 2]
lea esp, [esp]
mov bp, word [eax]
add eax, 2
test bp, bp
jne 0x4861c0
sub eax, ebx
sar eax, 1
push eax
push edx
call fcn.00401930
lea ecx, [esi + 0x196b6]
call fcn.0048e1e0
lea eax, [edi - 0x10]
mov byte [esp + 0x2c], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x486202
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x2c], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x486227
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x2c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48624f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, 1
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x486122