Function at 0x40d620
Capabilities:
Delete file
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4304a0
mov eax, dword fs:[0]
push eax
sub esp, 0xb0
mov eax, dword [0x442074]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov ebx, ecx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x98], eax
xor eax, eax
mov dword [ebp - 0x8c], 0
mov dword [ebp - 0xb8], 0
mov dword [ebp - 0x90], 0
mov byte [ebp - 0x79], 0
mov dword [ebp - 0xa0], 0
mov dword [ebp - 0x88], 0
mov dword [ebp - 0xa8], 0
mov dword [ebp - 0xac], 0
mov dword [ebp - 0xa4], 0
mov dword [ebp - 0x5c], 7
mov dword [ebp - 0x60], 0
mov word [ebp - 0x70], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], eax
mov word [ebp - 0x28], ax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x80], eax
call fcn.0040e970
xor eax, eax
mov dword [ebp - 0x84], 0
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x58]
cmp dword [ebp - 0x44], 0x10
lea edx, [ebp - 0x84]
cmovae ecx, dword [ebp - 0x58]
call fcn.004032e0
mov edx, dword [ebp - 0x84]
test edx, edx
je 0x40d746
cmp byte [edx], 0
jne 0x40d72e
xor ecx, ecx
jmp 0x40d73c
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40d733
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x58]
call fcn.00403e60
cmp dword [ebp - 0x5c], 8
lea eax, [ebp - 0x70]
mov dword [ebp - 0x60], 0
cmovae eax, dword [ebp - 0x70]
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
mov dword [ebp - 0x18], ecx
cmovae eax, dword [ebp - 0x28]
mov word [eax], cx
cmp dword [ebp - 0x48], ecx
je 0x40d7c4
cmp dword [ebp - 0x44], 0x10
lea ecx, [ebp - 0x58]
lea edx, [ebp - 0x80]
cmovae ecx, dword [ebp - 0x58]
push ecx
call fcn.0040afc0
mov esi, dword [ebp - 0x80]
add esp, 4
test esi, esi
je 0x40d7c4
cmp word [esi], 0
jne 0x40d79b
xor ecx, ecx
jmp 0x40d7af
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40d7a0
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x70]
call fcn.00401a90
push 2
push esi
call fcn.00411eba
add esp, 8
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
mov dword [ebp - 0x30], 0
cmovae eax, dword [ebp - 0x40]
xor ecx, ecx
mov word [eax], cx
test edi, edi
je 0x40d7ff
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40d7e4
sub ecx, edx
sar ecx, 1
je 0x40d7ff
lea edx, [ebp - 0x40]
mov ecx, edi
call fcn.0040bb00
mov ecx, dword [ebp - 0x60]
test ecx, ecx
je 0x40d84c
cmp dword [ebp - 0x30], 0
je 0x40d84c
cmp dword [ebp - 0x2c], 8
lea esi, [ebp - 0x40]
lea edi, [ebp - 0x28]
cmovae esi, dword [ebp - 0x40]
sub esp, 0x18
mov ecx, esp
xor eax, eax
push 0xffffffffffffffff
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [ebp - 0x70]
push eax
call fcn.00401c60
mov edx, edi
mov ecx, esi
call fcn.0040b160
add esp, 0x18
jmp 0x40d864
test ecx, ecx
lea edx, [ebp - 0x40]
push 0xffffffffffffffff
lea eax, [ebp - 0x70]
push 0
cmove eax, edx
lea ecx, [ebp - 0x28]
push eax
call fcn.00401c60
lea ecx, [ebp - 0x28]
call fcn.0040b930
test ebx, ebx
je 0x40d884
mov ecx, ebx
call fcn.0040d550
mov edi, eax
mov dword [ebp - 0x78], edi
test edi, edi
js 0x40deaf
lea eax, [ebp - 0xb8]
push eax
lea eax, [ebp - 0x8c]
push eax
push str.MANIFEST
push 0
call fcn.0040ff80
mov edi, eax
mov dword [ebp - 0x78], edi
test edi, edi
js 0x40deaf
mov eax, dword [ebp - 0x8c]
push 1
movzx eax, byte [eax + 1]
imul eax, eax, 0x468
push eax
call fcn.004105d0
mov ebx, eax
mov dword [ebp - 0x90], ebx
test ebx, ebx
jne 0x40d8e9
mov edi, 0x8007000e
push edi
push 0x3b3
push str.setupexe.cpp
call fcn.00410870
jmp 0x40e08e
mov ecx, dword [ebp - 0x8c]
xor bl, bl
mov edx, dword [ebp + 8]
movzx eax, byte [ecx + 1]
imul eax, eax, 0xa8
add eax, 4
add eax, ecx
mov dword [ebp - 0x84], eax
cmp byte [ecx + 2], bl
jbe 0x40d9b6
movzx esi, bl
shl esi, 4
add esi, eax
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x94], eax
mov eax, edx
cmp edx, 0xffffffff
jne 0x40d939
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov ecx, dword [ebp - 0x8c]
movzx eax, ax
cmp eax, dword [ebp - 0x94]
jne 0x40d9a2
push 0x104
lea eax, [ebp - 0x88]
push eax
call fcn.0040fae0
mov edi, eax
mov dword [ebp - 0x78], edi
test edi, edi
js 0x40deaf
push 0x104
push dword [ebp - 0x88]
push 0x43dfc0
call fcn.00410690
mov edi, eax
mov dword [ebp - 0x78], edi
test edi, edi
js 0x40deaf
push 2
push dword [ebp - 0x88]
push esi
call fcn.0040fe70
mov edi, eax
mov dword [ebp - 0x78], eax
test edi, edi
js 0x40deaf
mov ecx, dword [ebp - 0x8c]
mov edx, dword [ebp + 8]
inc bl
mov eax, dword [ebp - 0x84]
cmp bl, byte [ecx + 2]
jb 0x40d912
cmp dword [ebp - 0x88], 0
jne 0x40dae2
xor al, al
mov byte [ebp - 0x71], al
cmp byte [ecx + 2], al
jbe 0x40dae2
mov dword [ebp - 0x94], 4
nop dword [eax + eax]
movzx esi, al
mov eax, dword [ebp + 8]
shl esi, 4
add esi, dword [ebp - 0x84]
mov edx, dword [esi + 0xc]
mov dword [ebp - 0x80], edx
cmp eax, 0xffffffff
jne 0x40da0c
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov ecx, dword [ebp - 0x8c]
mov edx, dword [ebp - 0x80]
movzx eax, ax
mov ebx, eax
and ebx, 0x3ff
cmp word [ebp - 0x94], bx
jne 0x40da5a
cmp eax, 0xc04
ja 0x40da40
je 0x40da4e
cmp eax, 0x404
je 0x40da4e
cmp eax, 0x804
jne 0x40da39
mov eax, 0x804
xor edx, edx
cmp eax, dword [ebp - 0x80]
jmp 0x40da69
cmp eax, 0x1004
je 0x40da34
cmp eax, 0x1404
jne 0x40da39
mov eax, 0x404
xor edx, edx
cmp eax, dword [ebp - 0x80]
jmp 0x40da69
and edx, 0x3ff
mov dword [ebp - 0x80], edx
xor edx, edx
cmp bx, word [ebp - 0x80]
sete dl
test edx, edx
je 0x40dad1
push 0x104
lea eax, [ebp - 0x88]
push eax
call fcn.0040fae0
mov edi, eax
mov dword [ebp - 0x78], edi
test edi, edi
js 0x40deaf
push 0x104
push dword [ebp - 0x88]
push 0x43dfc0
call fcn.00410690
mov edi, eax
mov dword [ebp - 0x78], edi
test edi, edi
js 0x40deaf
push 2
push dword [ebp - 0x88]
push esi
call fcn.0040fe70
mov edi, eax
mov dword [ebp - 0x78], eax
test edi, edi
js 0x40deaf
mov ecx, dword [ebp - 0x8c]
mov al, byte [ebp - 0x71]
inc al
mov byte [ebp - 0x71], al
cmp al, byte [ecx + 2]
jb 0x40d9e0
mov eax, dword [ebp - 0x98]
test eax, eax
je 0x40daf9
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 0x8c]
xor dl, dl
mov byte [ebp - 0x71], dl
cmp byte [ecx + 1], dl
jbe 0x40dea7
nop word [eax + eax]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x94], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x9c], eax
movzx eax, dl
imul ebx, eax, 0xa8
movzx eax, byte [ebp - 0x79]
imul esi, eax, 0x468
add ebx, 4
add ebx, ecx
add esi, dword [ebp - 0x90]
cmp dword [ebp - 0x18], 0
mov dword [ebp - 0x84], esi
je 0x40db5c
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
jmp 0x40db61
mov eax, 0x43cdd0
push 0
push eax
lea eax, [ebp - 0xa4]
push eax
call fcn.0040fdd0
mov edi, eax
mov dword [ebp - 0x78], edi
test edi, edi
js 0x40deaf
push 0x27
push esi
lea eax, [ebx + 0x8c]
push eax
call dword [sym.imp.ole32.dll_StringFromGUID2]
mov edi, eax
mov dword [ebp - 0x78], edi
test edi, edi
js 0x40deaf
test dword [ebx + 0xa4], 0x100
je 0x40dbb0
mov esi, 6
mov dword [ebp - 0x80], esi
jmp 0x40dbf6
cmp dword [ebp + 0x14], 7
je 0x40dbeb
mov edx, dword [ebx + 0x9c]
lea eax, [ebp - 0x9c]
push eax
push dword [ebx + 0xa0]
mov ecx, esi
call fcn.0040cfd0
mov edi, eax
add esp, 8
mov dword [ebp - 0x78], edi
test edi, edi
js 0x40deaf
mov esi, dword [ebp - 0x9c]
mov dword [ebp - 0x80], esi
jmp 0x40dbee
mov esi, dword [ebp - 0x80]
test esi, esi
je 0x40de90
inc byte [ebp - 0x79]
lea edx, [ebp - 0xa0]
mov ecx, ebx
call fcn.0040d0c0
mov edi, eax
mov dword [ebp - 0x78], edi
test edi, edi
js 0x40deaf
mov ecx, dword [ebp - 0x84]
mov edx, 0x104
mov esi, dword [ebp - 0xa0]
add ecx, 0x4e
xor edi, edi
mov dword [ebp - 0x9c], 1
mov dword [ebp - 0x78], edi
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x40dc58
movzx eax, word [esi]
test ax, ax
je 0x40dc58
mov word [ecx], ax
add esi, 2
add ecx, 2
sub edx, 1
jne 0x40dc36
jmp 0x40dc5c
test edx, edx
jne 0x40dc67
mov edi, 0x8007007a
sub ecx, 2
mov dword [ebp - 0x78], edi
xor eax, eax
mov word [ecx], ax
test edi, edi
js 0x40deaf
cmp dword [ebp - 0x88], eax
je 0x40dd29
test byte [ebx + 0xa4], 0x80
je 0x40dd29
push eax
push str._TRANSFORMS_
lea eax, [ebp - 0xa4]
push eax
call fcn.0040fb40
mov edi, eax
mov dword [ebp - 0x78], edi
test edi, edi
js 0x40deaf
mov eax, dword [ebx + 0xa4]
test al, 4
je 0x40dd02
mov edx, dword [ebp - 0x88]
lea ecx, [ebp - 0xac]
push ecx
and eax, 1
mov ecx, ebx
push eax
call fcn.0040ced0
mov edi, eax
add esp, 8
mov dword [ebp - 0x78], edi
test edi, edi
js 0x40deaf
mov eax, dword [ebp - 0x88]
test eax, eax
je 0x40dcf8
push eax
call fcn.0040fe60
mov dword [ebp - 0x88], 0
push 0
push dword [ebp - 0xac]
jmp 0x40dd0a
push 0
push dword [ebp - 0x88]
call fcn.004103d0
push eax
lea eax, [ebp - 0xa4]
push eax
call fcn.0040fb40
mov edi, eax
mov dword [ebp - 0x78], edi
test edi, edi
js 0x40deaf
mov eax, dword [ebx + 0xa4]
mov edx, dword [ebp - 0xa0]
test al, 4
je 0x40dde4
lea ecx, [ebp - 0xa8]
and eax, 1
push ecx
push eax
mov ecx, ebx
call fcn.0040cdd0
mov edi, eax
add esp, 8
mov dword [ebp - 0x78], edi
test edi, edi
js 0x40deaf
mov ecx, dword [ebp - 0x84]
mov edx, 0x104
mov eax, dword [ebp - 0xa8]
add ecx, 0x256
xor edi, edi
mov dword [ebp - 0x9c], 0
mov dword [ebp - 0xb0], eax
mov esi, eax
mov dword [ebp - 0x78], edi
nop dword [eax]
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x40ddb2
movzx eax, word [esi]
test ax, ax
je 0x40ddb2
mov word [ecx], ax
add esi, 2
add ecx, 2
sub edx, 1
jne 0x40dd90
jmp 0x40ddb6
test edx, edx
jne 0x40ddc1
mov edi, 0x8007007a
sub ecx, 2
mov dword [ebp - 0x78], edi
xor eax, eax
mov word [ecx], ax
test edi, edi
js 0x40deaf
mov eax, dword [ebp - 0x84]
mov edx, dword [ebp - 0xb0]
mov dword [eax + 0x460], 1
mov ecx, dword [ebx + 0xa4]
test cl, 8
jne 0x40de05
test cl, 0x10
mov eax, 3
mov esi, 0x43
cmovne eax, esi
mov dword [ebp - 0x94], eax
mov eax, ecx
and eax, 1
push eax
mov eax, ecx
and ecx, 0x10
and eax, 0x200
push eax
push ecx
push dword [ebp - 0x94]
push dword [ebp - 0x80]
push dword [ebp - 0x98]
push dword [ebp - 0xa4]
push edx
lea edx, [ebx + 0xc]
mov ebx, dword [ebp - 0x84]
mov ecx, ebx
call fcn.0040caf0
mov edi, eax
add esp, 0x20
mov dword [ebp - 0x78], edi
test edi, edi
js 0x40deaf
cmp edi, 1
jne 0x40de71
cmp dword [ebx + 0x460], 0
je 0x40de7b
lea esi, [ebx + 0x256]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor eax, eax
mov word [esi], ax
mov dword [ebx + 0x460], eax
jmp 0x40de7b
mov dword [ebx + 0x464], 1
cmp dword [ebp - 0x9c], 0
je 0x40de90
push dword [ebp - 0xa0]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dl, byte [ebp - 0x71]
mov ecx, dword [ebp - 0x8c]
inc dl
mov byte [ebp - 0x71], dl
cmp dl, byte [ecx + 1]
jb 0x40db10
test edi, edi
jns 0x40e088
cmp edi, 0x80070bc2
je 0x40e088
cmp edi, 0x80070bc3
je 0x40e088
cmp edi, 0x80070669
je 0x40e088
mov al, byte [ebp - 0x79]
test al, al
je 0x40e088
mov esi, dword [ebp - 0x90]
mov edi, dword [ebp - 0x98]
add esi, 0x256
movzx ebx, al
mov dword [ebp - 0x84], ebx
nop dword [eax]
cmp dword [esi + 0x20e], 0
je 0x40e04c
push 0
push 3
mov dword [ebp - 0xbc], 0
mov dword [ebp - 0x80], 0
mov dword [ebp - 0xb4], 0
mov dword [ebp - 0x9c], 0
call dword [sym.imp.msi.dll_MsiSetPropertyW]
test edi, edi
je 0x40df4e
push 1
push edi
push 0x1fdf
call dword [sym.imp.msi.dll_MsiGetComponentPathW]
push 0
push 0x43cdd0
lea eax, [ebp - 0x80]
push eax
call fcn.0040fdd0
test eax, eax
js 0x40e00e
lea eax, [ebp - 0x98]
xor ebx, ebx
push eax
push 8
mov dword [ebp - 0x98], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x40dfb9
lea eax, [ebp - 0xb0]
mov dword [ebp - 0xb0], 4
push eax
push 4
lea eax, [ebp - 0x94]
push eax
push 0x14
push dword [ebp - 0x98]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
cmovne ebx, dword [ebp - 0x94]
mov eax, dword [ebp - 0x98]
test eax, eax
je 0x40dfca
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
mov ecx, str._IS_ELEVATEDno
push 0
mov eax, str._IS_ELEVATEDyes
cmove eax, ecx
push eax
lea eax, [ebp - 0x80]
push eax
call fcn.0040fb40
test eax, eax
js 0x40e008
push 0
push str._REMOVEALL
lea eax, [ebp - 0x80]
push eax
call fcn.0040fb40
test eax, eax
js 0x40e008
push dword [ebp - 0x80]
push 0
call dword [sym.imp.msi.dll_MsiOpenDatabaseW]
mov ebx, dword [ebp - 0x84]
mov eax, dword [ebp - 0x9c]
test eax, eax
je 0x40e01f
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 0x80]
test eax, eax
je 0x40e02c
push eax
call fcn.0040fe60
mov eax, dword [ebp - 0xbc]
test eax, eax
je 0x40e03c
push eax
call fcn.0040fe60
mov eax, dword [ebp - 0xb4]
test eax, eax
je 0x40e04c
push eax
call fcn.0040fe60
cmp word [esi], 0
je 0x40e059
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp word [esi - 0x208], 0
lea eax, [esi - 0x208]
je 0x40e070
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
add esi, 0x468
sub ebx, 1
mov dword [ebp - 0x84], ebx
jne 0x40df00
mov edi, dword [ebp - 0x78]
mov ebx, dword [ebp - 0x90]
mov eax, dword [ebp - 0x88]
test eax, eax
je 0x40e09f
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test ebx, ebx
je 0x40e0a9
push ebx
call fcn.00410600
mov eax, dword [ebp - 0xa0]
test eax, eax
je 0x40e0b9
push eax
call fcn.0040fe60
mov eax, dword [ebp - 0x88]
test eax, eax
je 0x40e0c9
push eax
call fcn.0040fe60
mov eax, dword [ebp - 0xa8]
test eax, eax
je 0x40e0d9
push eax
call fcn.0040fe60
mov eax, dword [ebp - 0xac]
test eax, eax
je 0x40e0e9
push eax
call fcn.0040fe60
mov eax, dword [ebp - 0xa4]
test eax, eax
je 0x40e0f9
push eax
call fcn.0040fe60
mov eax, dword [ebp - 0x2c]
cmp eax, 8
jb 0x40e10e
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.00401c00
xor eax, eax
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x30], 0
cmp eax, 0x10
jb 0x40e16c
mov ecx, dword [ebp - 0x58]
inc eax
cmp eax, 0x1000
jb 0x40e163
test cl, 0x1f
je 0x40e13f
call fcn.004197d5
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x40e14b
call fcn.004197d5
sub ecx, eax
cmp ecx, 4
jae 0x40e157
call fcn.004197d5
cmp ecx, 0x23
jbe 0x40e161
call fcn.004197d5
mov ecx, eax
push ecx
call fcn.00411e8d
add esp, 4
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x44], 0xf
mov dword [ebp - 0x48], 0
mov byte [ebp - 0x58], 0
cmp eax, 8
jb 0x40e193
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00401c00
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x18], 0
cmp eax, 8
jb 0x40e1bc
inc eax
lea ecx, [ebp - 0x70]
push eax
push dword [ebp - 0x70]
call fcn.00401c00
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00411e49
mov esp, ebp
pop ebp
ret