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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4a88a8
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x4d62b0]
xor eax, esp
mov dword [esp + 0x48], eax
push ebx
push esi
push edi
mov eax, dword [0x4d62b0]
xor eax, esp
push eax
lea eax, [esp + 0x60]
mov dword fs:[0], eax
mov edi, ecx
xor ebx, ebx
mov dword [esp + 0x18], edi
xor esi, esi
add edi, 0x3e4
mov dword [esp + 0x30], ebx
mov dword [esp + 0x14], edi
nop
mov ecx, dword [edi + 4]
cmp ecx, esi
je 0x450a95
mov eax, dword [edi + 8]
sub eax, ecx
sar eax, 2
cmp ebx, eax
jae 0x450a95
mov esi, ecx
test esi, esi
je 0x450a90
mov ecx, dword [edi + 8]
mov eax, ecx
sub eax, esi
sar eax, 2
cmp eax, ebx
jbe 0x450a90
cmp esi, ecx
jbe 0x450930
call fcn.00489916
mov dword [esp + 0x38], esi
lea esi, [esi + ebx*4]
cmp esi, dword [edi + 8]
ja 0x450941
cmp esi, dword [edi + 4]
jae 0x450946
call fcn.00489916
cmp esi, dword [edi + 8]
jb 0x450950
call fcn.00489916
mov eax, dword [esi]
lea ecx, [esp + 0x34]
push ecx
mov ecx, dword [esp + 0x1c]
add ecx, 0x428
mov dword [esp + 0x38], eax
call fcn.0043a300
mov esi, eax
mov eax, dword [esi + 0x48]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x450984
mov eax, dword [esi + 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea edx, [esi + 0x54]
push edx
lea eax, [esp + 0x30]
lea ebx, [esi + 0x4c]
push eax
call fcn.00439020
add esp, 8
xor ebx, ebx
mov dword [esp + 0x68], ebx
mov ecx, dword [esp + 0x2c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x450a58
mov edx, dword [esp + 0x2c]
mov eax, edx
mov dword [esp + 0x54], 7
mov dword [esp + 0x50], ebx
mov word [esp + 0x40], bx
lea esi, [eax + 2]
jmp 0x4509d0
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4509d0
sub eax, esi
sar eax, 1
push eax
push edx
lea esi, [esp + 0x44]
call fcn.0043d0d0
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
push ebx
lea edx, [esp + 0x20]
push edx
mov eax, esi
push eax
mov byte [esp + 0x74], 2
call fcn.0045a8f0
mov eax, dword [esp + 0x2c]
add esp, 0xc
cmp eax, ebx
je 0x450a38
mov ecx, dword [esp + 0x14]
mov edi, dword [esp + 0x24]
push ecx
call fcn.004434d0
mov edx, dword [esp + 0x24]
add esp, 4
push edx
call fcn.00487c06
mov edi, dword [esp + 0x18]
add esp, 4
xor ebx, ebx
cmp dword [esp + 0x54], 8
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
jb 0x450a58
mov eax, dword [esp + 0x40]
push eax
call fcn.00487c06
add esp, 4
mov dword [esp + 0x68], 0xffffffff
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x450a80
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add dword [esp + 0x30], 1
mov ebx, dword [esp + 0x30]
xor esi, esi
jmp 0x4508f0
jmp fcn.004571b0
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x68], 3
mov edi, dword [esp + 0x18]
add edi, 0x444
lea ecx, [esp + 0x14]
push edi
push ecx
mov ebx, 0x4bd7ac
call fcn.004390e0
add esp, 8
mov byte [esp + 0x68], 4
mov ecx, dword [eax]
mov eax, ecx
mov dword [esp + 0x54], 7
mov dword [esp + 0x50], esi
mov word [esp + 0x40], si
lea ebx, [eax + 2]
mov dx, word [eax]
add eax, 2
cmp dx, si
jne 0x450ae3
sub eax, ebx
sar eax, 1
push eax
push ecx
lea esi, [esp + 0x44]
call fcn.0043d0d0
mov byte [esp + 0x68], 6
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x450b22
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x44]
push edx
call fcn.0045a8f0
add esp, 0xc
lea eax, [esp + 0x18]
push edi
push eax
mov ebx, 0x4bd7bc
call fcn.004390e0
add esp, 8
mov ebx, 7
mov byte [esp + 0x68], bl
mov ecx, dword [eax]
mov eax, ecx
lea esi, [eax + 2]
lea esp, [esp]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x450b60
sub eax, esi
sar eax, 1
push eax
push ecx
lea esi, [esp + 0x44]
call fcn.0043d0d0
mov byte [esp + 0x68], 6
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x450b9f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor esi, esi
push esi
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x44]
push edx
call fcn.0045a8f0
add esp, 0xc
cmp dword [esp + 0x54], 8
jb 0x450bc8
mov eax, dword [esp + 0x40]
push eax
call fcn.00487c06
add esp, 4
mov eax, dword [esp + 0x20]
cmp eax, esi
mov dword [esp + 0x54], ebx
mov dword [esp + 0x50], esi
mov word [esp + 0x40], si
je 0x450bfb
mov ecx, dword [esp + 0x14]
mov edi, dword [esp + 0x24]
push ecx
call fcn.004434d0
mov edx, dword [esp + 0x24]
add esp, 4
push edx
call fcn.00487c06
add esp, 4
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.00488fa3
mov esp, ebp
pop ebp
ret