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

Disassembly:
push 0xffffffffffffffff
push 0x48b911
mov eax, dword fs:[0]
push eax
sub esp, 0xac
mov eax, dword [0x4a4100]
xor eax, esp
mov dword [esp + 0xa8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a4100]
xor eax, esp
push eax
lea eax, [esp + 0xc0]
mov dword fs:[0], eax
mov ebp, dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
mov edi, ecx
xor ebx, ebx
mov dword [esp + 0x1c], edi
mov esi, 8
cmp byte [edi + 0x3c], bl
jne 0x45f3a3
cmp dword [edi + 0x38], esi
jb 0x45f37d
mov eax, dword [edi + 0x24]
jmp 0x45f380
lea eax, [edi + 0x24]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x45f3a3
cmp dword [edi + 0x38], esi
jb 0x45f395
mov eax, dword [edi + 0x24]
jmp 0x45f398
lea eax, [edi + 0x24]
push eax
call ebp
test eax, eax
je 0x45fa43
lea eax, [edi + 0x20]
lea ecx, [esp + 0x84]
call fcn.00465a50
mov dword [esp + 0xc8], ebx
mov eax, dword [esp + 0x88]
cmp dword [esp + 0x9c], esi
jae 0x45f3d0
lea eax, [esp + 0x88]
push eax
call ebp
test eax, eax
jne 0x45f407
lea ecx, [esp + 0x84]
call fcn.0044a8e0
test eax, eax
jne 0x45f407
cmp dword [esp + 0x9c], esi
jb 0x45f400
mov eax, dword [esp + 0x88]
push eax
call fcn.0046f011
add esp, 4
xor al, al
jmp 0x45fa45
push ebx
push 0x4944e0
lea ecx, [esp + 0x70]
mov dword [esp + 0x88], 0xf
mov dword [esp + 0x84], ebx
mov byte [esp + 0x74], 0
call fcn.00404be0
mov byte [esp + 0xc8], 1
mov eax, dword [edi + 0x18]
mov ebp, dword [eax]
mov ebx, dword [edi]
mov dword [esp + 0x18], ebp
mov dword [esp + 0x14], ebx
mov esi, dword [edi + 0x18]
mov eax, dword [edi]
test ebx, ebx
je 0x45f451
cmp ebx, eax
je 0x45f456
call fcn.0046f637
cmp ebp, esi
je 0x45f57a
test ebx, ebx
jne 0x45f4f0
call fcn.0046f637
xor eax, eax
cmp ebp, dword [eax + 0x18]
jne 0x45f477
call fcn.0046f637
mov ecx, dword [ebp + 0x40]
mov edi, dword [ecx]
mov ebx, dword [ebp + 0x28]
mov dword [esp + 0x24], edi
mov dword [esp + 0x20], ebx
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x45f4f7
call fcn.0046f637
xor eax, eax
cmp ebp, dword [eax + 0x18]
jne 0x45f4a0
call fcn.0046f637
mov esi, dword [ebp + 0x40]
mov eax, dword [ebp + 0x28]
test ebx, ebx
je 0x45f4ae
cmp ebx, eax
je 0x45f4b3
call fcn.0046f637
cmp edi, esi
je 0x45f560
test ebx, ebx
jne 0x45f4fb
call fcn.0046f637
xor eax, eax
cmp edi, dword [eax + 0x18]
jne 0x45f4d0
call fcn.0046f637
mov esi, dword [edi + 0x20]
mov eax, esi
cmp eax, esi
jae 0x45f4d9
mov eax, esi
cmp esi, 8
jb 0x45f4e5
mov eax, 8
cmp dword [edi + 0x24], 0x10
jb 0x45f4ff
mov edx, dword [edi + 0x10]
jmp 0x45f502
mov eax, dword [ebx]
jmp 0x45f46d
mov eax, dword [eax]
jmp 0x45f496
mov eax, dword [ebx]
jmp 0x45f4c6
lea edx, [edi + 0x10]
mov ecx, str.config15
call fcn.0045b100
test eax, eax
jne 0x45f51f
cmp esi, 8
jb 0x45f51f
cmp esi, 8
setne al
test eax, eax
je 0x45f546
test ebx, ebx
jne 0x45f55c
call fcn.0046f637
xor eax, eax
cmp edi, dword [eax + 0x18]
jne 0x45f534
call fcn.0046f637
push 0
add edi, 0x28
push edi
or eax, 0xffffffff
lea esi, [esp + 0x70]
call fcn.004031f0
lea esi, [esp + 0x20]
call fcn.00460cd0
mov edi, dword [esp + 0x24]
mov ebx, dword [esp + 0x20]
jmp 0x45f487
mov eax, dword [ebx]
jmp 0x45f52a
lea esi, [esp + 0x14]
call fcn.00461300
mov ebp, dword [esp + 0x18]
mov ebx, dword [esp + 0x14]
mov edi, dword [esp + 0x1c]
jmp 0x45f444
cmp dword [esp + 0x7c], 0
je 0x45f658
lea edx, [esp + 0xa0]
push edx
lea ecx, [esp + 0x6c]
call fcn.0045fa70
mov byte [esp + 0xc8], 2
push 8
mov ebx, 0xf
xor esi, esi
push str.config15
lea ecx, [esp + 0x30]
mov dword [esp + 0x48], ebx
mov dword [esp + 0x44], esi
mov byte [esp + 0x34], 0
call fcn.00404be0
mov byte [esp + 0xc8], 3
push 7
push str.config4
lea ecx, [esp + 0x54]
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x68], esi
mov byte [esp + 0x58], 0
call fcn.00404be0
lea eax, [esp + 0xa0]
push eax
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x54]
mov edx, edi
mov byte [esp + 0xd0], 4
call fcn.0045e370
mov edi, 0x10
cmp dword [esp + 0x64], edi
jb 0x45f61f
mov edx, dword [esp + 0x50]
push edx
call fcn.0046f011
add esp, 4
mov dword [esp + 0x64], ebx
mov dword [esp + 0x60], esi
mov byte [esp + 0x50], 0
cmp dword [esp + 0x40], edi
jb 0x45f63f
mov eax, dword [esp + 0x2c]
push eax
call fcn.0046f011
add esp, 4
cmp dword [esp + 0xb8], edi
jb 0x45f658
mov ecx, dword [esp + 0xa4]
push ecx
call fcn.0046f011
add esp, 4
xor esi, esi
mov dword [esp + 0x20], esi
mov ebx, dword [esp + 0x1c]
add ebx, 0x20
mov ecx, ebx
lea edi, [esp + 0x20]
mov byte [esp + 0xc8], 5
call fcn.00465aa0
test eax, eax
jne 0x45f6b0
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
mov edi, dword [esp + 0x20]
test edi, edi
je 0x45f697
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
mov dword [esp + 0x20], edi
push 0x64
call ebp
inc esi
cmp esi, 5
jge 0x45f6bf
mov ecx, ebx
lea edi, [esp + 0x20]
call fcn.00465aa0
test eax, eax
je 0x45f682
mov ebp, 8
cmp dword [ebx + 0x18], ebp
jb 0x45f706
mov eax, dword [ebx + 4]
jmp 0x45f709
test edi, edi
je 0x45f6ca
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x80], 0x10
jb 0x45f6e1
mov edx, dword [esp + 0x6c]
push edx
call fcn.0046f011
add esp, 4
cmp dword [esp + 0x9c], 8
mov dword [esp + 0x80], 0xf
mov dword [esp + 0x7c], 0
mov byte [esp + 0x6c], 0
jmp 0x45f3ee
lea eax, [ebx + 4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x45f7bc
cmp dword [ebx + 0x18], ebp
jb 0x45f722
mov eax, dword [ebx + 4]
jmp 0x45f725
lea eax, [ebx + 4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x45f7a8
cmp dword [ebx + 0x18], ebp
jb 0x45f73a
mov edx, dword [ebx + 4]
jmp 0x45f73d
lea edx, [ebx + 4]
xor ecx, ecx
mov eax, edx
mov dword [esp + 0x40], 7
mov dword [esp + 0x3c], 0
mov word [esp + 0x2c], cx
lea esi, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x45f760
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x30]
call fcn.00405fe0
lea edi, [esp + 0x28]
mov byte [esp + 0xc8], 6
call fcn.00465850
mov byte [esp + 0xc8], 5
cmp dword [esp + 0x40], ebp
jb 0x45f7bc
mov edx, dword [esp + 0x2c]
push edx
call fcn.0046f011
add esp, 4
jmp 0x45f7bc
cmp dword [ebx + 0x18], ebp
jb 0x45f7b2
mov eax, dword [ebx + 4]
jmp 0x45f7b5
lea eax, [ebx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx + 0x18]
mov edi, dword [eax]
mov ebx, dword [ecx]
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], ebx
nop
mov esi, dword [ecx + 0x18]
mov eax, dword [ecx]
test ebx, ebx
je 0x45f7dd
cmp ebx, eax
je 0x45f7e2
call fcn.0046f637
cmp edi, esi
je 0x45f9eb
test ebx, ebx
jne 0x45f8f6
call fcn.0046f637
xor eax, eax
cmp edi, dword [eax + 0x18]
jne 0x45f803
call fcn.0046f637
mov eax, dword [edi + 0x40]
mov ebp, dword [eax]
mov esi, dword [edi + 0x28]
mov dword [esp + 0x48], ebp
mov dword [esp + 0x44], esi
test ebx, ebx
jne 0x45f8fd
call fcn.0046f637
xor eax, eax
cmp edi, dword [eax + 0x18]
jne 0x45f82c
call fcn.0046f637
lea eax, [edi + 0xc]
mov edi, dword [eax + 0x34]
mov eax, dword [eax + 0x1c]
test esi, esi
je 0x45f83d
cmp esi, eax
je 0x45f842
call fcn.0046f637
cmp ebp, edi
je 0x45f9d1
test esi, esi
jne 0x45f904
call fcn.0046f637
xor eax, eax
cmp ebp, dword [eax + 0x18]
jne 0x45f863
call fcn.0046f637
lea eax, [esp + 0xa0]
lea edi, [ebp + 0xc]
lea ecx, [edi + 0x1c]
push eax
call fcn.004656e0
add esp, 4
mov ebx, eax
mov byte [esp + 0xc8], 7
test esi, esi
jne 0x45f90b
call fcn.0046f637
cmp ebp, dword [esi + 0x18]
jne 0x45f89a
call fcn.0046f637
lea ecx, [esp + 0x4c]
push ecx
mov ecx, edi
call fcn.004656e0
add esp, 4
mov edi, eax
mov byte [esp + 0xc8], 8
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x45f90f
call fcn.0046f637
xor eax, eax
mov esi, dword [esp + 0x18]
cmp esi, dword [eax + 0x18]
jne 0x45f8d0
call fcn.0046f637
lea edx, [esp + 0x28]
push edx
lea ecx, [esi + 0xc]
call fcn.004656e0
mov esi, dword [esp + 0x20]
add esi, 0x20
mov ebp, 8
add esp, 4
cmp dword [esi + 0x18], ebp
jb 0x45f913
mov esi, dword [esi + 4]
jmp 0x45f916
mov eax, dword [ebx]
jmp 0x45f7f9
mov eax, dword [ebx]
jmp 0x45f822
mov eax, dword [esi]
jmp 0x45f859
mov esi, dword [esi]
jmp 0x45f890
mov eax, dword [eax]
jmp 0x45f8c2
add esi, 4
cmp dword [ebx + 0x18], ebp
jb 0x45f920
mov edx, dword [ebx + 4]
jmp 0x45f923
lea edx, [ebx + 4]
cmp dword [edi + 0x18], ebp
jb 0x45f92d
mov ecx, dword [edi + 4]
jmp 0x45f930
lea ecx, [edi + 4]
cmp dword [eax + 0x18], ebp
jb 0x45f93a
mov eax, dword [eax + 4]
jmp 0x45f93d
add eax, 4
push esi
push edx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
cmp dword [esp + 0x40], ebp
jb 0x45f95a
mov eax, dword [esp + 0x2c]
push eax
call fcn.0046f011
add esp, 4
xor edi, edi
xor ecx, ecx
mov esi, 7
mov dword [esp + 0x40], esi
mov dword [esp + 0x3c], edi
mov word [esp + 0x2c], cx
cmp dword [esp + 0x64], ebp
jb 0x45f983
mov edx, dword [esp + 0x50]
push edx
call fcn.0046f011
add esp, 4
xor eax, eax
mov byte [esp + 0xc8], 5
mov dword [esp + 0x64], esi
mov dword [esp + 0x60], edi
mov word [esp + 0x50], ax
cmp dword [esp + 0xb8], ebp
jb 0x45f9b3
mov ecx, dword [esp + 0xa4]
push ecx
call fcn.0046f011
add esp, 4
lea esi, [esp + 0x44]
call fcn.00460cd0
mov ebp, dword [esp + 0x48]
mov esi, dword [esp + 0x44]
mov ebx, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
jmp 0x45f813
lea esi, [esp + 0x14]
call fcn.00461300
mov edi, dword [esp + 0x18]
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
jmp 0x45f7d0
mov eax, dword [esp + 0x20]
test eax, eax
je 0x45f9fa
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x80], 0x10
jb 0x45fa11
mov edx, dword [esp + 0x6c]
push edx
call fcn.0046f011
add esp, 4
cmp dword [esp + 0x9c], 8
mov dword [esp + 0x80], 0xf
mov dword [esp + 0x7c], 0
mov byte [esp + 0x6c], 0
jb 0x45fa43
mov eax, dword [esp + 0x88]
push eax
call fcn.0046f011
add esp, 4
mov al, 1
mov ecx, dword [esp + 0xc0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xa8]
xor ecx, esp
call fcn.0046f01c
add esp, 0xb8
ret