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

Disassembly:
push 0xffffffffffffffff
push 0x4a1188
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x4c36a0]
xor eax, esp
mov dword [esp + 0x68], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4c36a0]
xor eax, esp
push eax
lea eax, [esp + 0x80]
mov dword fs:[0], eax
xor ebx, ebx
mov edi, 0xf
mov dword [esp + 0x88], ebx
mov dword [esp + 0x5c], edi
mov dword [esp + 0x58], ebx
mov byte [esp + 0x48], bl
mov eax, dword [esp + 0x94]
mov ebp, 0x10
cmp dword [esp + 0xa8], ebp
mov byte [esp + 0x88], 1
jae 0x4355b3
lea eax, [esp + 0x94]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
cmp eax, 1
jne 0x43575f
mov dword [esp + 0x78], edi
mov dword [esp + 0x74], ebx
mov byte [esp + 0x64], bl
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x30], esp
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0xb4]
mov dword [ecx + 0x18], edi
mov dword [ecx + 0x14], ebx
push eax
mov byte [esp + 0xb0], 2
mov byte [ecx + 4], bl
call fcn.0040a8e0
lea ecx, [esp + 0x7c]
push ecx
call fcn.00435160
add esp, 0x20
cmp al, bl
je 0x43574c
lea ecx, [esp + 0x18]
call fcn.00470050
lea edx, [esp + 0x60]
push edx
lea ecx, [esp + 0x1c]
mov byte [esp + 0x8c], 3
call fcn.004708d0
lea ecx, [esp + 0x18]
xor esi, esi
call fcn.0046f250
test eax, eax
jbe 0x4356d9
push esi
lea ecx, [esp + 0x1c]
call fcn.0046f200
cmp dword [eax + 0x18], ebp
jb 0x435654
mov edi, dword [eax + 4]
jmp 0x435657
lea edi, [eax + 4]
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
cmp eax, 1
jne 0x4356c0
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
setne al
cmp al, bl
jne 0x4356c0
push 0x4a92d4
push esi
lea ecx, [esp + 0x20]
call fcn.0046f200
push eax
lea eax, [esp + 0x30]
push eax
call fcn.0040b3a0
add esp, 0xc
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x50]
mov byte [esp + 0x94], 4
call fcn.004098f0
cmp dword [esp + 0x40], ebp
mov byte [esp + 0x88], 3
jb 0x4356c0
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.0047528f
add esp, 4
lea ecx, [esp + 0x18]
add esi, 1
call fcn.0046f250
cmp esi, eax
jb 0x435640
mov edi, 0xf
cmp dword [esp + 0x58], ebx
jne 0x43570b
cmp dword [esp + 0xa8], ebp
mov esi, dword [esp + 0x94]
jae 0x4356f6
lea esi, [esp + 0x94]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
cmp eax, 1
jne 0x43573b
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x43573b
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x30], esp
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0xb4]
mov dword [ecx + 0x18], edi
mov dword [ecx + 0x14], ebx
push edx
lea esi, [esp + 0x6c]
mov byte [ecx + 4], bl
call fcn.0040a8e0
mov ecx, esi
call fcn.004335b0
add esp, 0x1c
lea ecx, [esp + 0x18]
mov byte [esp + 0x88], 2
call fcn.00470060
cmp dword [esp + 0x78], ebp
jb 0x43575f
mov eax, dword [esp + 0x64]
push eax
call fcn.0047528f
add esp, 4
cmp dword [esp + 0x5c], ebp
jb 0x435772
mov ecx, dword [esp + 0x48]
push ecx
call fcn.0047528f
add esp, 4
cmp dword [esp + 0xa8], ebp
mov dword [esp + 0x5c], edi
mov dword [esp + 0x58], ebx
mov byte [esp + 0x48], bl
jb 0x435797
mov edx, dword [esp + 0x94]
push edx
call fcn.0047528f
add esp, 4
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.00476554
add esp, 0x78
ret