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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42a520
mov eax, dword fs:[0]
push eax
sub esp, 0xac
mov eax, dword [0x4371c0]
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 - 0xa8], eax
xor eax, eax
mov dword [ebp - 0x8c], 0
mov dword [ebp - 0xb4], 0
mov dword [ebp - 0x90], 0
mov byte [ebp - 0x79], 0
mov dword [ebp - 0xa0], 0
mov dword [ebp - 0x84], 0
mov dword [ebp - 0xac], 0
mov dword [ebp - 0xb0], 0
mov dword [ebp - 0x9c], 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 - 0x88], eax
call fcn.0040ead0
xor eax, eax
mov dword [ebp - 0x80], 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 - 0x80]
cmovae ecx, dword [ebp - 0x58]
call fcn.00403600
mov edx, dword [ebp - 0x80]
test edx, edx
je 0x40dab3
cmp byte [edx], 0
jne 0x40da98
xor ecx, ecx
jmp 0x40daa9
mov ecx, edx
lea esi, [ecx + 1]
lea ecx, [ecx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40daa0
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x58]
call fcn.00401e70
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 0x40db35
cmp dword [ebp - 0x44], 0x10
lea ecx, [ebp - 0x58]
lea edx, [ebp - 0x88]
cmovae ecx, dword [ebp - 0x58]
push ecx
call fcn.0040b490
mov esi, dword [ebp - 0x88]
add esp, 4
test esi, esi
je 0x40db35
cmp word [esi], 0
jne 0x40db0e
xor ecx, ecx
jmp 0x40db22
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40db13
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x70]
call fcn.00402010
push esi
call fcn.00411d06
add esp, 4
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 0x40db70
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40db55
sub ecx, edx
sar ecx, 1
je 0x40db70
lea edx, [ebp - 0x40]
mov ecx, edi
call fcn.0040bf10
mov ecx, dword [ebp - 0x60]
test ecx, ecx
je 0x40dbb9
cmp dword [ebp - 0x30], 0
je 0x40dbb9
sub esp, 0x18
xor eax, eax
mov ecx, esp
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.00402290
cmp dword [ebp - 0x2c], 8
lea ecx, [ebp - 0x40]
lea edx, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x40]
call fcn.0040b610
add esp, 0x18
jmp 0x40dbd1
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.00402290
lea ecx, [ebp - 0x28]
call fcn.0040bd60
test ebx, ebx
je 0x40dbf1
mov ecx, ebx
call fcn.0040d8c0
mov edi, eax
mov dword [ebp - 0x78], edi
test edi, edi
js 0x40e21c
lea eax, [ebp - 0xb4]
push eax
lea eax, [ebp - 0x8c]
push eax
push str.MANIFEST
push 0
call fcn.00410340
mov edi, eax
mov dword [ebp - 0x78], edi
test edi, edi
js 0x40e21c
mov eax, dword [ebp - 0x8c]
push 1
movzx eax, byte [eax + 1]
imul eax, eax, 0x468
push eax
call fcn.00410990
mov ebx, eax
mov dword [ebp - 0x90], ebx
test ebx, ebx
jne 0x40dc56
mov edi, 0x8007000e
push edi
push 0x3af
push str.setupexe.cpp
call fcn.00410a50
jmp 0x40e359
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 - 0x80], eax
cmp byte [ecx + 2], bl
jbe 0x40dd21
lea esp, [esp]
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 0x40dca7
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov ecx, dword [ebp - 0x8c]
movzx eax, ax
cmp eax, dword [ebp - 0x94]
jne 0x40dd10
push 0x104
lea eax, [ebp - 0x84]
push eax
call fcn.0040fcd0
mov edi, eax
mov dword [ebp - 0x78], edi
test edi, edi
js 0x40e21c
push 0x104
push dword [ebp - 0x84]
push 0x432f60
call fcn.00410050
mov edi, eax
mov dword [ebp - 0x78], edi
test edi, edi
js 0x40e21c
push 2
push dword [ebp - 0x84]
push esi
call fcn.00410230
mov edi, eax
mov dword [ebp - 0x78], eax
test edi, edi
js 0x40e21c
mov ecx, dword [ebp - 0x8c]
mov edx, dword [ebp + 8]
inc bl
mov eax, dword [ebp - 0x80]
cmp bl, byte [ecx + 2]
jb 0x40dc80
cmp dword [ebp - 0x84], 0
jne 0x40de57
xor al, al
mov byte [ebp - 0x71], al
cmp byte [ecx + 2], al
jbe 0x40de57
mov dword [ebp - 0x94], 4
movzx esi, al
mov eax, dword [ebp + 8]
shl esi, 4
add esi, dword [ebp - 0x80]
mov edx, dword [esi + 0xc]
mov dword [ebp - 0x88], edx
cmp eax, 0xffffffff
jne 0x40dd75
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov ecx, dword [ebp - 0x8c]
mov edx, dword [ebp - 0x88]
movzx eax, ax
mov ebx, eax
and ebx, 0x3ff
cmp word [ebp - 0x94], bx
jne 0x40ddc9
cmp eax, 0xc04
ja 0x40ddac
je 0x40ddba
cmp eax, 0x404
je 0x40ddba
cmp eax, 0x804
jne 0x40dda2
mov eax, 0x804
xor edx, edx
cmp eax, dword [ebp - 0x88]
jmp 0x40ddde
cmp eax, 0x1004
je 0x40dd9d
cmp eax, 0x1404
jne 0x40dda2
mov eax, 0x404
xor edx, edx
cmp eax, dword [ebp - 0x88]
jmp 0x40ddde
and edx, 0x3ff
mov dword [ebp - 0x88], edx
xor edx, edx
cmp bx, word [ebp - 0x88]
sete dl
test edx, edx
je 0x40de46
push 0x104
lea eax, [ebp - 0x84]
push eax
call fcn.0040fcd0
mov edi, eax
mov dword [ebp - 0x78], edi
test edi, edi
js 0x40e21c
push 0x104
push dword [ebp - 0x84]
push 0x432f60
call fcn.00410050
mov edi, eax
mov dword [ebp - 0x78], edi
test edi, edi
js 0x40e21c
push 2
push dword [ebp - 0x84]
push esi
call fcn.00410230
mov edi, eax
mov dword [ebp - 0x78], eax
test edi, edi
js 0x40e21c
mov ecx, dword [ebp - 0x8c]
mov al, byte [ebp - 0x71]
inc al
mov byte [ebp - 0x71], al
cmp al, byte [ecx + 2]
jb 0x40dd46
mov eax, dword [ebp - 0xa8]
test eax, eax
je 0x40de6e
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 0x40e214
lea esp, [esp]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x94], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x88], eax
mov dword [ebp - 0x98], 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 - 0x80], esi
je 0x40decc
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
jmp 0x40ded1
mov eax, 0x431e64
push 0
push eax
lea eax, [ebp - 0x9c]
push eax
call fcn.0040ffc0
mov edi, eax
mov dword [ebp - 0x78], edi
test edi, edi
js 0x40e21c
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 0x40e21c
test dword [ebx + 0xa4], 0x100
je 0x40df23
mov esi, 6
mov dword [ebp - 0x88], esi
jmp 0x40df6f
cmp dword [ebp + 0x14], 7
je 0x40df61
mov edx, dword [ebx + 0x9c]
lea eax, [ebp - 0x98]
push eax
push dword [ebx + 0xa0]
mov ecx, esi
call fcn.0040d340
mov edi, eax
add esp, 8
mov dword [ebp - 0x78], edi
test edi, edi
js 0x40e21c
mov esi, dword [ebp - 0x98]
mov dword [ebp - 0x88], esi
jmp 0x40df67
mov esi, dword [ebp - 0x88]
test esi, esi
je 0x40e1fd
inc byte [ebp - 0x79]
lea edx, [ebp - 0xa0]
mov ecx, ebx
call fcn.0040d430
mov edi, eax
mov dword [ebp - 0x78], edi
test edi, edi
js 0x40e21c
mov ecx, dword [ebp - 0x80]
mov edx, 0x104
mov esi, dword [ebp - 0xa0]
add ecx, 0x4e
xor edi, edi
mov dword [ebp - 0x98], 1
mov dword [ebp - 0x78], edi
lea esp, [esp]
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x40dfd0
movzx eax, word [esi]
test ax, ax
je 0x40dfd0
mov word [ecx], ax
add esi, 2
add ecx, 2
dec edx
jne 0x40dfb0
jmp 0x40dfd4
test edx, edx
jne 0x40dfdf
mov edi, 0x8007007a
sub ecx, 2
mov dword [ebp - 0x78], edi
xor eax, eax
mov word [ecx], ax
test edi, edi
js 0x40e21c
cmp dword [ebp - 0x84], eax
je 0x40e0a1
test byte [ebx + 0xa4], 0x80
je 0x40e0a1
push eax
push str._TRANSFORMS_
lea eax, [ebp - 0x9c]
push eax
call fcn.0040fd30
mov edi, eax
mov dword [ebp - 0x78], edi
test edi, edi
js 0x40e21c
mov eax, dword [ebx + 0xa4]
test al, 4
je 0x40e07a
mov edx, dword [ebp - 0x84]
lea ecx, [ebp - 0xb0]
push ecx
and eax, 1
mov ecx, ebx
push eax
call fcn.0040d240
mov edi, eax
add esp, 8
mov dword [ebp - 0x78], edi
test edi, edi
js 0x40e21c
mov eax, dword [ebp - 0x84]
test eax, eax
je 0x40e070
push eax
call fcn.00410040
mov dword [ebp - 0x84], 0
push 0
push dword [ebp - 0xb0]
jmp 0x40e082
push 0
push dword [ebp - 0x84]
call fcn.00410790
push eax
lea eax, [ebp - 0x9c]
push eax
call fcn.0040fd30
mov edi, eax
mov dword [ebp - 0x78], edi
test edi, edi
js 0x40e21c
mov eax, dword [ebx + 0xa4]
mov edx, dword [ebp - 0xa0]
test al, 4
je 0x40e151
lea ecx, [ebp - 0xac]
and eax, 1
push ecx
push eax
mov ecx, ebx
call fcn.0040d140
mov edi, eax
add esp, 8
mov dword [ebp - 0x78], edi
test edi, edi
js 0x40e21c
mov ecx, dword [ebp - 0x80]
mov edx, 0x104
mov eax, dword [ebp - 0xac]
add ecx, 0x256
xor edi, edi
mov dword [ebp - 0x98], 0
mov dword [ebp - 0xa4], eax
mov esi, eax
mov dword [ebp - 0x78], edi
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x40e122
movzx eax, word [esi]
test ax, ax
je 0x40e122
mov word [ecx], ax
add esi, 2
add ecx, 2
dec edx
jne 0x40e102
jmp 0x40e126
test edx, edx
jne 0x40e131
mov edi, 0x8007007a
sub ecx, 2
mov dword [ebp - 0x78], edi
xor eax, eax
mov word [ecx], ax
test edi, edi
js 0x40e21c
mov eax, dword [ebp - 0x80]
mov edx, dword [ebp - 0xa4]
mov dword [eax + 0x460], 1
mov ecx, dword [ebx + 0xa4]
test cl, 8
jne 0x40e172
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 - 0x88]
push dword [ebp - 0xa8]
push dword [ebp - 0x9c]
push edx
lea edx, [ebx + 0xc]
mov ebx, dword [ebp - 0x80]
mov ecx, ebx
call fcn.0040ced0
mov edi, eax
add esp, 0x20
mov dword [ebp - 0x78], edi
test edi, edi
js 0x40e21c
cmp edi, 1
jne 0x40e1de
cmp dword [ebx + 0x460], 0
je 0x40e1e8
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 0x40e1e8
mov dword [ebx + 0x464], 1
cmp dword [ebp - 0x98], 0
je 0x40e1fd
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 0x40de80
test edi, edi
jns 0x40e353
cmp edi, 0x80070bc2
je 0x40e353
cmp edi, 0x80070bc3
je 0x40e353
cmp edi, 0x80070669
je 0x40e353
mov al, byte [ebp - 0x79]
test al, al
je 0x40e353
mov esi, dword [ebp - 0x90]
mov edi, dword [ebp - 0xa8]
add esi, 0x256
movzx ebx, al
cmp dword [esi + 0x20e], 0
je 0x40e31f
push 0
push 3
mov dword [ebp - 0x94], 0
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x98], 0
mov dword [ebp - 0xa4], 0
call dword [sym.imp.msi.dll_MsiSetPropertyW]
test edi, edi
je 0x40e2ae
push 1
push edi
push 0x1fdf
call dword [sym.imp.msi.dll_MsiGetComponentPathW]
push 0
push 0x431e64
lea eax, [ebp - 0x80]
push eax
call fcn.0040ffc0
test eax, eax
js 0x40e2e1
push 0
push str._REMOVEALL
lea eax, [ebp - 0x80]
push eax
call fcn.0040fd30
test eax, eax
js 0x40e2e1
push dword [ebp - 0x80]
push 0
call dword [sym.imp.msi.dll_MsiOpenDatabaseW]
mov eax, dword [ebp - 0xa4]
test eax, eax
je 0x40e2f2
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 0x80]
test eax, eax
je 0x40e2ff
push eax
call fcn.00410040
mov eax, dword [ebp - 0x94]
test eax, eax
je 0x40e30f
push eax
call fcn.00410040
mov eax, dword [ebp - 0x98]
test eax, eax
je 0x40e31f
push eax
call fcn.00410040
cmp word [esi], 0
je 0x40e32c
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp word [esi - 0x208], 0
lea eax, [esi - 0x208]
je 0x40e343
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
add esi, 0x468
dec ebx
jne 0x40e260
mov edi, dword [ebp - 0x78]
mov ebx, dword [ebp - 0x90]
mov eax, dword [ebp - 0x84]
test eax, eax
je 0x40e36a
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test ebx, ebx
je 0x40e374
push ebx
call fcn.004109c0
mov eax, dword [ebp - 0xa0]
test eax, eax
je 0x40e384
push eax
call fcn.00410040
mov eax, dword [ebp - 0x84]
test eax, eax
je 0x40e394
push eax
call fcn.00410040
mov eax, dword [ebp - 0xac]
test eax, eax
je 0x40e3a4
push eax
call fcn.00410040
mov eax, dword [ebp - 0xb0]
test eax, eax
je 0x40e3b4
push eax
call fcn.00410040
mov eax, dword [ebp - 0x9c]
test eax, eax
je 0x40e3c4
push eax
call fcn.00410040
cmp dword [ebp - 0x2c], 8
jb 0x40e3d5
push dword [ebp - 0x40]
call fcn.00411d06
add esp, 4
xor eax, eax
mov dword [ebp - 0x2c], 7
cmp dword [ebp - 0x44], 0x10
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
jb 0x40e3fa
push dword [ebp - 0x58]
call fcn.00411d06
add esp, 4
cmp dword [ebp - 0x14], 8
mov dword [ebp - 0x44], 0xf
mov dword [ebp - 0x48], 0
mov byte [ebp - 0x58], 0
jb 0x40e41d
push dword [ebp - 0x28]
call fcn.00411d06
add esp, 4
xor eax, eax
mov dword [ebp - 0x14], 7
cmp dword [ebp - 0x5c], 8
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
jb 0x40e442
push dword [ebp - 0x70]
call fcn.00411d06
add esp, 4
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.0041154d
mov esp, ebp
pop ebp
ret