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

Disassembly:
push 0xffffffffffffffff
push 0x4752e0
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x48b2b0]
xor eax, esp
mov dword [esp + 0x2c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x48b2b0]
xor eax, esp
push eax
lea eax, [esp + 0x44]
mov dword fs:[0], eax
xor ebp, ebp
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x18], ebp
xor esi, esi
mov dword [esp + 0x14], ebp
call fcn.00407f20
xor ebx, ebx
cmp eax, 8
mov dword [esp + 0x1c], eax
jl 0x406cda
cmp dword [esp + 0x70], 2
jne 0x406cda
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
cmp ebx, ebp
je 0x406cc6
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.Wow64DisableWow64FsRedirection
push ebx
call edi
push str.Wow64RevertWow64FsRedirection
push ebx
mov esi, eax
call edi
mov dword [esp + 0x14], eax
call fcn.00406ff0
test eax, eax
je 0x406cda
cmp esi, ebp
je 0x406cda
lea eax, [esp + 0x18]
push eax
call esi
xor ecx, ecx
push ebp
mov eax, 0x47a964
lea esi, [esp + 0x28]
xor edi, edi
mov dword [esp + 0x40], 7
mov dword [esp + 0x3c], ebp
mov word [esp + 0x2c], cx
call fcn.00403eb0
mov eax, dword [esp + 0x70]
sub eax, ebp
mov byte [esp + 0x4c], 1
je 0x406d1e
sub eax, 2
jne 0x406d33
call fcn.00407040
mov edi, eax
mov eax, 0x47ae98
jmp 0x406d28
mov edi, 0x82
mov eax, 0x47ae90
push 3
lea esi, [esp + 0x28]
call fcn.00403eb0
cmp dword [esp + 0x38], ebp
jne 0x406d89
cmp ebx, ebp
je 0x406d44
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov esi, 8
cmp dword [esp + 0x3c], esi
jb 0x406d5c
mov edx, dword [esp + 0x28]
push edx
call fcn.0045850d
add esp, 4
xor eax, eax
mov dword [esp + 0x3c], 7
mov dword [esp + 0x38], ebp
mov word [esp + 0x28], ax
cmp dword [esp + 0x6c], esi
jb 0x406d82
mov ecx, dword [esp + 0x58]
push ecx
call fcn.0045850d
add esp, 4
xor al, al
jmp 0x406e64
mov eax, dword [esp + 0x58]
mov esi, 8
cmp dword [esp + 0x6c], esi
jae 0x406d9c
lea eax, [esp + 0x58]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x406dc6
cmp dword [esp + 0x70], ebp
jne 0x406e83
mov eax, dword [esp + 0x58]
cmp dword [esp + 0x6c], esi
jae 0x406dbf
lea eax, [esp + 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [esp + 0x28]
cmp dword [esp + 0x3c], esi
jae 0x406dd4
lea ecx, [esp + 0x28]
mov eax, dword [esp + 0x58]
cmp dword [esp + 0x6c], esi
jae 0x406de2
lea eax, [esp + 0x58]
push ecx
push eax
push edi
call fcn.00406ba0
add esp, 0xc
mov esi, eax
mov edi, 8
cmp dword [esp + 0x1c], edi
jl 0x406e19
cmp dword [esp + 0x70], 2
jne 0x406e19
call fcn.00406ff0
test eax, eax
je 0x406e19
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x406e19
mov ecx, dword [esp + 0x18]
push ecx
call eax
cmp ebx, ebp
je 0x406e24
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp esi, ebp
setne bl
cmp dword [esp + 0x3c], edi
jb 0x406e3c
mov edx, dword [esp + 0x28]
push edx
call fcn.0045850d
add esp, 4
xor eax, eax
mov dword [esp + 0x3c], 7
mov dword [esp + 0x38], ebp
mov word [esp + 0x28], ax
cmp dword [esp + 0x6c], edi
jb 0x406e62
mov ecx, dword [esp + 0x58]
push ecx
call fcn.0045850d
add esp, 4
mov al, bl
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.004584fe
add esp, 0x3c
ret
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x3c], esp
push 0xffffffffffffffff
xor edx, edx
mov dword [ecx + 0x18], 7
mov dword [ecx + 0x14], ebp
push ebp
lea eax, [esp + 0x78]
mov word [ecx + 4], dx
call fcn.00403af0
call fcn.00406f00
add esp, 0x1c
cmp dword [esp + 0x3c], 8
mov esi, eax
mov eax, dword [esp + 0x28]
jae 0x406ec1
lea eax, [esp + 0x28]
push eax
push edi
call fcn.00406f80
add esp, 8
cmp esi, eax
jae 0x406eef
cmp dword [esp + 0x6c], 8
mov eax, dword [esp + 0x58]
jae 0x406ede
lea eax, [esp + 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, 8
jmp 0x406dc6
mov esi, 1
jmp 0x406def