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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f882d
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x530010]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
push 7
push str.r_x86__
push esi
mov dword [ebp - 0x38], eax
call fcn.004d38c4
add esp, 0xc
test eax, eax
jne 0x40aaf6
cmp byte [0x532380], al
je 0x40aaf3
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push esi
call fcn.0040caa0
mov al, 1
jmp 0x40ad99
add esi, 0xe
push 7
push str.r_x64__
push esi
call fcn.004d38c4
add esp, 0xc
test eax, eax
jne 0x40ab15
cmp byte [0x532380], al
je 0x40aae0
add esi, 0xe
push 0x530b50
lea ecx, [ebp - 0x2c]
call fcn.00406340
sub esp, 0x18
mov dword [ebp - 4], 0
mov edx, esp
mov dword [ebp - 0x30], esp
mov ecx, esi
mov dword [edx], 0
mov dword [edx + 0x10], 0
lea edi, [ecx + 2]
mov dword [edx + 0x14], 7
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40ab50
sub ecx, edi
sar ecx, 1
push ecx
push esi
mov ecx, edx
call fcn.004014e0
sub esp, 0x18
mov byte [ebp - 4], 1
lea eax, [ebp - 0x2c]
mov ecx, esp
push eax
call fcn.00406340
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 0
call fcn.0046c000
add esp, 0x30
lea ecx, [ebp - 0x2c]
push eax
call fcn.00406290
mov edx, dword [ebp - 0x3c]
cmp edx, 8
jb 0x40abd0
mov ecx, dword [ebp - 0x50]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40abc2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40adb5
push edx
push ecx
call fcn.00476a87
add esp, 8
nop dword [eax]
mov edi, dword [ebp - 0x18]
lea ecx, [ebp - 0x2c]
mov ebx, dword [ebp - 0x2c]
cmp edi, 8
mov edx, dword [ebp - 0x1c]
push 1
push 0x51898c
cmovae ecx, ebx
push 0
call fcn.004064c0
add esp, 0xc
cmp eax, 0xffffffff
je 0x40ac0c
push 1
push 0x518990
push 1
push eax
lea ecx, [ebp - 0x2c]
call fcn.00406ff0
jmp 0x40abd0
cmp byte [ebp + 0xc], 0
mov byte [ebp - 0x31], 0
je 0x40acbd
cmp edi, 8
mov dword [ebp - 0x50], 0
lea edx, [ebp - 0x2c]
mov dword [ebp - 0x40], 0
cmovae edx, ebx
mov dword [ebp - 0x3c], 7
mov ecx, edx
xor eax, eax
mov word [ebp - 0x50], ax
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40ac43
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x50]
call fcn.004014e0
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 2
call fcn.0046cb40
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x3c]
cmp edx, 8
jb 0x40ad4e
mov ecx, dword [ebp - 0x50]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40aca0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40adba
push edx
push ecx
call fcn.00476a87
add esp, 8
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push esi
call fcn.0040caa0
mov bl, 1
jmp 0x40ad61
cmp edi, 8
lea eax, [ebp - 0x2c]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmovae eax, ebx
push eax
call edi
test eax, eax
je 0x40ace5
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
call edi
test eax, eax
je 0x40acff
lea ecx, [ebp - 0x2c]
call fcn.0046c330
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
push 0x5187c4
cmovae eax, dword [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], 0
push eax
call fcn.004cff0c
mov eax, dword [ebp - 0x30]
add esp, 0xc
test eax, eax
je 0x40ad5e
push eax
push dword [ebp + 0x14]
push 1
push dword [ebp - 0x38]
call fcn.004d03b7
push dword [ebp - 0x30]
call fcn.004cfd33
add esp, 0x14
push dword [ebp - 0x30]
call fcn.004d00bf
add esp, 4
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push esi
call fcn.0040caa0
mov bl, 1
jmp 0x40ad61
mov bl, byte [ebp - 0x31]
mov edx, dword [ebp - 0x18]
cmp edx, 8
jb 0x40ad97
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40ad8d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40adbf
push edx
push ecx
call fcn.00476a87
add esp, 8
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00476a44
mov esp, ebp
pop ebp
ret
call fcn.004ca66d
call fcn.004ca66d
call fcn.004ca66d
int3