Function at 0x401810
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x128]
sub esp, 0x128
push 0xffffffffffffffff
push 0x41efe0
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x43f7ac]
xor eax, ebp
mov dword [ebp + 0x124], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, dword [ebp + 0x130]
mov dword [ebp - 0x14], esi
xor edi, edi
mov dword [ebp - 4], edi
cmp esi, edi
je 0x401f6a
cmp dword [ebp + 0x134], edi
je 0x40187e
push esi
call fcn.00401680
add esp, 4
test eax, eax
mov dword [ebp - 0x18], 1
jne 0x401881
mov dword [ebp - 0x18], edi
add esi, 0x314
push esi
call fcn.0040f370
add esp, 4
test eax, eax
je 0x4018a9
push edi
push esi
call fcn.0040f500
add esp, 8
push esi
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
call edi
jmp 0x4018af
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov dword [ebp - 0x1c], 0
mov ebx, dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea esp, [esp]
mov ecx, dword [ebp - 0x1c]
shl ecx, 5
lea ecx, [ecx + str.7_1____t59_]
cmp byte [ecx], 0
je 0x401a02
lea edx, [ebp]
mov al, byte [ecx]
mov byte [edx], al
add ecx, 1
add edx, 1
test al, al
jne 0x4018d8
lea ecx, [ebp]
mov dword [ebp - 0x20], ecx
movzx eax, byte [ecx]
test al, al
je 0x4018fd
xor eax, 0x5a
mov byte [ecx], al
add ecx, 1
jmp 0x4018e9
mov ecx, dword [ebp - 0x14]
add ecx, 0xb08
lea edx, [ebp + 0x20]
lea esp, [esp]
mov al, byte [ecx]
mov byte [edx], al
add ecx, 1
add edx, 1
test al, al
jne 0x401910
lea eax, [ebp + 0x20]
push eax
call fcn.0040e2c0
add esp, 4
lea eax, [ebp]
mov edx, eax
nop
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x401930
sub eax, edx
lea edi, [ebp + 0x20]
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x401941
mov ecx, eax
mov esi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp + 0x20]
push ecx
call fcn.0040f370
add esp, 4
test eax, eax
je 0x401983
push 0
lea edx, [ebp + 0x20]
push edx
call fcn.0040f500
add esp, 8
lea eax, [ebp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0x104
lea ecx, [ebp + 0x20]
push ecx
call ebx
lea edx, [ebp + 0x20]
push edx
call fcn.0040e2c0
add esp, 4
lea eax, [ebp]
mov ecx, eax
nop
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x4019a0
sub eax, ecx
mov esi, ecx
lea edi, [ebp + 0x20]
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x4019b3
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [ebp + 0x20]
push eax
call fcn.0040f370
add esp, 4
test eax, eax
je 0x4019f3
push 0
lea ecx, [ebp + 0x20]
push ecx
call fcn.0040f500
add esp, 8
lea edx, [ebp + 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
add dword [ebp - 0x1c], 1
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x4018c0
mov esi, dword [ebp - 0x14]
add esi, 0x22e4
push esi
call fcn.0040f370
add esp, 4
mov ebx, dword [ebp - 0x18]
test eax, eax
je 0x401a42
test ebx, ebx
je 0x401a31
push str.vdorctrl.dll
push esi
call fcn.0040e720
add esp, 8
test eax, eax
jne 0x401a42
push esi
call edi
test eax, eax
jne 0x401a42
push eax
push esi
call fcn.0040f500
add esp, 8
mov esi, dword [ebp - 0x14]
add esi, 0x2e10
push esi
call fcn.0040f370
add esp, 4
test eax, eax
je 0x401a7f
test ebx, ebx
je 0x401a6e
push str.svrltmgr.dll
push esi
call fcn.0040e720
add esp, 8
test eax, eax
jne 0x401a7f
push esi
call edi
test eax, eax
jne 0x401a7f
push eax
push esi
call fcn.0040f500
add esp, 8
mov esi, dword [ebp - 0x14]
add esi, 0x670
push esi
call fcn.0040f370
add esp, 4
test eax, eax
je 0x401abc
test ebx, ebx
je 0x401aab
push str.svrltwp.dll
push esi
call fcn.0040e720
add esp, 8
test eax, eax
jne 0x401abc
push esi
call edi
test eax, eax
jne 0x401abc
push eax
push esi
call fcn.0040f500
add esp, 8
mov esi, dword [ebp - 0x14]
add esi, 0x23e8
push esi
call fcn.0040f370
add esp, 4
test eax, eax
je 0x401af9
test ebx, ebx
je 0x401ae8
push str.snxapi.dll
push esi
call fcn.0040e720
add esp, 8
test eax, eax
jne 0x401af9
push esi
call edi
test eax, eax
jne 0x401af9
push eax
push esi
call fcn.0040f500
add esp, 8
mov esi, dword [ebp - 0x14]
add esi, 0x2f14
push esi
call fcn.0040f370
add esp, 4
test eax, eax
je 0x401b36
test ebx, ebx
je 0x401b25
push str.snxapi.exe
push esi
call fcn.0040e720
add esp, 8
test eax, eax
jne 0x401b36
push esi
call edi
test eax, eax
jne 0x401b36
push eax
push esi
call fcn.0040f500
add esp, 8
mov esi, dword [ebp - 0x14]
add esi, 0x27f8
push esi
call fcn.0040f370
add esp, 4
test eax, eax
je 0x401b73
test ebx, ebx
je 0x401b62
push str.vdorctrl.sys
push esi
call fcn.0040e720
add esp, 8
test eax, eax
jne 0x401b73
push esi
call edi
test eax, eax
jne 0x401b73
push eax
push esi
call fcn.0040f500
add esp, 8
mov esi, dword [ebp - 0x14]
add esi, 0x25f0
push esi
call fcn.0040f370
add esp, 4
test eax, eax
je 0x401bb0
test ebx, ebx
je 0x401b9f
push str.wshvtx.exe
push esi
call fcn.0040e720
add esp, 8
test eax, eax
jne 0x401bb0
push esi
call edi
test eax, eax
jne 0x401bb0
push eax
push esi
call fcn.0040f500
add esp, 8
mov ecx, esi
lea edx, [ebp + 0x20]
mov al, byte [ecx]
mov byte [edx], al
add ecx, 1
add edx, 1
test al, al
jne 0x401bb5
push 0x2e
lea eax, [ebp + 0x20]
push eax
call fcn.0040fe80
add esp, 8
mov esi, eax
test esi, esi
je 0x401cb9
mov ecx, dword [str..hlp]
mov dword [esi], ecx
mov dl, byte [0x4216ec]
mov byte [esi + 4], dl
lea eax, [ebp + 0x20]
push eax
call fcn.0040f370
add esp, 4
test eax, eax
je 0x401c13
lea ecx, [ebp + 0x20]
push ecx
call edi
test eax, eax
jne 0x401c13
push eax
lea edx, [ebp + 0x20]
push edx
call fcn.0040f500
add esp, 8
mov eax, dword [str..cnt]
mov dword [esi], eax
mov cl, byte [0x4216e4]
mov byte [esi + 4], cl
lea edx, [ebp + 0x20]
push edx
call fcn.0040f370
add esp, 4
test eax, eax
je 0x401c4a
lea eax, [ebp + 0x20]
push eax
call edi
test eax, eax
jne 0x401c4a
push eax
lea ecx, [ebp + 0x20]
push ecx
call fcn.0040f500
add esp, 8
mov edx, dword [str..chm]
mov dword [esi], edx
mov al, byte [0x4216dc]
mov byte [esi + 4], al
lea ecx, [ebp + 0x20]
push ecx
call fcn.0040f370
add esp, 4
test eax, eax
je 0x401c81
lea edx, [ebp + 0x20]
push edx
call edi
test eax, eax
jne 0x401c81
push eax
lea eax, [ebp + 0x20]
push eax
call fcn.0040f500
add esp, 8
mov ecx, dword [str..gid]
mov dword [esi], ecx
mov dl, byte [0x4216d4]
mov byte [esi + 4], dl
lea eax, [ebp + 0x20]
push eax
call fcn.0040f370
add esp, 4
test eax, eax
je 0x401cb9
lea ecx, [ebp + 0x20]
push ecx
call edi
test eax, eax
jne 0x401cb9
push eax
lea edx, [ebp + 0x20]
push edx
call fcn.0040f500
add esp, 8
mov esi, dword [ebp - 0x14]
add esi, 0x26f4
push esi
call fcn.0040f370
add esp, 4
test eax, eax
je 0x401cf6
test ebx, ebx
je 0x401ce5
push str.secadtr.dll
push esi
call fcn.0040e720
add esp, 8
test eax, eax
jne 0x401cf6
push esi
call edi
test eax, eax
jne 0x401cf6
push eax
push esi
call fcn.0040f500
add esp, 8
mov esi, dword [ebp - 0x14]
add esi, 0x56c
push esi
call fcn.0040f370
add esp, 4
test eax, eax
je 0x401d33
test ebx, ebx
je 0x401d22
push str.nmcpusym.dll
push esi
call fcn.0040e720
add esp, 8
test eax, eax
jne 0x401d33
push esi
call edi
test eax, eax
jne 0x401d33
push eax
push esi
call fcn.0040f500
add esp, 8
mov esi, dword [ebp - 0x14]
add esi, 0x3220
push esi
call fcn.0040f370
add esp, 4
test eax, eax
je 0x401d70
test ebx, ebx
je 0x401d5f
push str.xsysym.dll
push esi
call fcn.0040e720
add esp, 8
test eax, eax
jne 0x401d70
push esi
call edi
test eax, eax
jne 0x401d70
push eax
push esi
call fcn.0040f500
add esp, 8
mov esi, dword [ebp - 0x14]
add esi, 0x2c08
push esi
call fcn.0040f370
add esp, 4
test eax, eax
je 0x401dad
test ebx, ebx
je 0x401d9c
push str.cmproxfr.dll
push esi
call fcn.0040e720
add esp, 8
test eax, eax
jne 0x401dad
push esi
call edi
test eax, eax
jne 0x401dad
push eax
push esi
call fcn.0040f500
add esp, 8
mov esi, dword [ebp - 0x14]
add esi, 0x2d0c
push esi
call fcn.0040f370
add esp, 4
test eax, eax
je 0x401ddc
test ebx, ebx
je 0x401dd9
push str.sgvrfy32.exe
push esi
call fcn.0040e720
add esp, 8
test eax, eax
jne 0x401ddc
push esi
call edi
mov esi, dword [ebp - 0x14]
add esi, 0x3018
push esi
call fcn.0040f370
add esp, 4
test eax, eax
je 0x401e19
test ebx, ebx
je 0x401e08
push str.ashl16.dll
push esi
call fcn.0040e720
add esp, 8
test eax, eax
jne 0x401e19
push esi
call edi
test eax, eax
jne 0x401e19
push eax
push esi
call fcn.0040f500
add esp, 8
mov esi, dword [ebp - 0x14]
add esi, 0x311c
push esi
call fcn.0040f370
add esp, 4
test eax, eax
je 0x401e56
test ebx, ebx
je 0x401e45
push str.ashl32.dll
push esi
call fcn.0040e720
add esp, 8
test eax, eax
jne 0x401e56
push esi
call edi
test eax, eax
jne 0x401e56
push eax
push esi
call fcn.0040f500
add esp, 8
mov ebx, 0x43e5c4
mov dword [ebp - 0x24], ebx
cmp dword [ebx], 0
je 0x401eda
push 0x104
lea eax, [ebp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [ebp + 0x20]
push ecx
call fcn.0040e2c0
add esp, 4
mov eax, dword [ebx]
mov ecx, eax
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x401e82
sub eax, ecx
mov esi, ecx
lea edi, [ebp + 0x20]
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x401e95
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edx, [ebp + 0x20]
push edx
call fcn.0040f370
add esp, 4
test eax, eax
je 0x401ed5
push 0
lea eax, [ebp + 0x20]
push eax
call fcn.0040f500
add esp, 8
lea ecx, [ebp + 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
add ebx, 4
jmp 0x401e5b
push 0
call fcn.004014c0
add esp, 4
push eax
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call fcn.0040f560
add esp, 8
push 0x104
lea edx, [ebp + 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [ebp + 0x20]
push eax
call fcn.0040e2c0
add esp, 4
lea eax, [ebp + 0x20]
add eax, 0xffffffff
mov cl, byte [eax + 1]
add eax, 1
test cl, cl
jne 0x401f15
mov ecx, dword [str.msocxu]
mov dword [eax], ecx
mov dx, word [0x4216c8]
mov word [eax + 4], dx
mov cl, byte [0x4216ca]
mov byte [eax + 6], cl
lea eax, [ebp + 0x20]
add eax, 0xffffffff
mov cl, byte [eax + 1]
add eax, 1
test cl, cl
jne 0x401f41
mov edx, dword [str.sys.dll]
mov dword [eax], edx
mov ecx, dword [0x4216c0]
mov dword [eax + 4], ecx
push 0
lea edx, [ebp + 0x20]
push edx
call fcn.0040f500
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x124]
xor ecx, ebp
call fcn.0040fe67
add ebp, 0x128
mov esp, ebp
pop ebp
ret