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

Disassembly:
push 0xffffffffffffffff
push 0x47f1d8
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x49d2b0]
xor eax, esp
mov dword [esp + 0x30], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x49d2b0]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
xor ebp, ebp
mov dword [esp + 0x50], ebp
mov dword [esp + 0x18], ebp
xor esi, esi
mov dword [esp + 0x1c], ebp
call fcn.00402170
cmp eax, 8
mov dword [esp + 0x20], eax
mov dword [esp + 0x14], ebp
jl 0x451220
cmp dword [esp + 0x74], 2
jne 0x451220
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
mov dword [esp + 0x14], ebx
cmp ebx, ebp
je 0x45120c
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 + 0x1c], eax
call fcn.004515c0
test eax, eax
je 0x451220
cmp esi, ebp
je 0x451220
lea eax, [esp + 0x18]
push eax
call esi
xor ecx, ecx
push ebp
mov eax, 0x4857f8
lea esi, [esp + 0x2c]
xor edi, edi
mov dword [esp + 0x44], 7
mov dword [esp + 0x40], ebp
mov word [esp + 0x30], cx
call fcn.00402880
mov ebx, 1
mov byte [esp + 0x50], bl
mov eax, dword [esp + 0x74]
sub eax, ebp
je 0x451268
sub eax, 2
jne 0x45127d
call fcn.00451610
mov edi, eax
mov eax, 0x48a7f8
jmp 0x451272
mov edi, 0x82
mov eax, 0x48a7f0
push 3
lea esi, [esp + 0x2c]
call fcn.00402880
cmp dword [esp + 0x3c], ebp
jne 0x4512e7
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x451292
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov byte [esp + 0x50], 0
mov edi, 8
cmp dword [esp + 0x40], edi
jb 0x4512af
mov edx, dword [esp + 0x2c]
push edx
call fcn.0045f4bb
add esp, 4
mov esi, 7
xor eax, eax
mov dword [esp + 0x40], esi
mov dword [esp + 0x3c], ebp
mov word [esp + 0x2c], ax
mov dword [esp + 0x50], 0xffffffff
cmp dword [esp + 0x70], edi
jb 0x4512de
mov ecx, dword [esp + 0x5c]
push ecx
call fcn.0045f4bb
add esp, 4
xor edx, edx
xor al, al
jmp 0x4513d6
mov eax, dword [esp + 0x5c]
mov esi, 8
cmp dword [esp + 0x70], esi
jae 0x4512fa
lea eax, [esp + 0x5c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x451324
cmp dword [esp + 0x74], ebp
jne 0x451402
mov eax, dword [esp + 0x5c]
cmp dword [esp + 0x70], esi
jae 0x45131d
lea eax, [esp + 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [esp + 0x2c]
cmp dword [esp + 0x40], esi
jae 0x451332
lea ecx, [esp + 0x2c]
mov eax, dword [esp + 0x5c]
cmp dword [esp + 0x70], esi
jae 0x451340
lea eax, [esp + 0x5c]
push ecx
push eax
push edi
call fcn.004510e0
add esp, 0xc
mov esi, eax
mov edi, 8
cmp dword [esp + 0x20], edi
jl 0x451377
cmp dword [esp + 0x74], 2
jne 0x451377
call fcn.004515c0
test eax, eax
je 0x451377
mov eax, dword [esp + 0x1c]
cmp eax, ebp
je 0x451377
mov ecx, dword [esp + 0x18]
push ecx
call eax
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x451386
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp esi, ebp
setne bl
mov byte [esp + 0x50], 0
cmp dword [esp + 0x40], edi
jb 0x4513a3
mov edx, dword [esp + 0x2c]
push edx
call fcn.0045f4bb
add esp, 4
mov esi, 7
xor eax, eax
mov dword [esp + 0x40], esi
mov dword [esp + 0x3c], ebp
mov word [esp + 0x2c], ax
mov dword [esp + 0x50], 0xffffffff
cmp dword [esp + 0x70], edi
jb 0x4513d2
mov ecx, dword [esp + 0x5c]
push ecx
call fcn.0045f4bb
add esp, 4
xor edx, edx
mov al, bl
mov word [esp + 0x5c], dx
mov dword [esp + 0x6c], ebp
mov dword [esp + 0x70], esi
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.0045f4ac
add esp, 0x40
ret
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x40], esp
xor eax, eax
mov dword [ecx + 0x18], 7
mov dword [ecx + 0x14], ebp
push 0xffffffffffffffff
mov word [ecx + 4], ax
push ebp
lea eax, [esp + 0x7c]
call fcn.004023c0
mov byte [esp + 0x6c], 2
mov byte [esp + 0x6c], bl
call fcn.00451480
add esp, 0x1c
cmp dword [esp + 0x40], 8
mov esi, eax
mov eax, dword [esp + 0x2c]
jae 0x451449
lea eax, [esp + 0x2c]
push eax
push edi
call fcn.00451560
add esp, 8
cmp esi, eax
jae 0x451477
cmp dword [esp + 0x70], 8
mov eax, dword [esp + 0x5c]
jae 0x451466
lea eax, [esp + 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, 8
jmp 0x451324
mov esi, ebx
jmp 0x45134d