Function at 0x40d9a0
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, 0xa4
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 - 0xa4], eax
xor eax, eax
mov dword [ebp - 0x88], 0
mov dword [ebp - 0xb0], 0
mov dword [ebp - 0xa0], 0
mov byte [ebp - 0x76], 0
mov dword [ebp - 0x94], 0
mov dword [ebp - 0x80], 0
mov dword [ebp - 0xa8], 0
mov dword [ebp - 0xac], 0
mov dword [ebp - 0x98], 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 - 0x84], eax
call fcn.0040eac0
xor eax, eax
mov dword [ebp - 0x7c], 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 - 0x7c]
cmovae ecx, dword [ebp - 0x58]
call fcn.00403600
mov edx, dword [ebp - 0x7c]
test edx, edx
je 0x40dac3
cmp byte [edx], 0
jne 0x40daa5
xor ecx, ecx
jmp 0x40dab9
mov ecx, edx
lea esi, [ecx + 1]
lea ebx, [ebx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40dab0
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 0x40db45
cmp dword [ebp - 0x44], 0x10
lea ecx, [ebp - 0x58]
lea edx, [ebp - 0x84]
cmovae ecx, dword [ebp - 0x58]
push ecx
call fcn.0040b490
mov esi, dword [ebp - 0x84]
add esp, 4
test esi, esi
je 0x40db45
cmp word [esi], 0
jne 0x40db1e
xor ecx, ecx
jmp 0x40db32
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40db23
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x70]
call fcn.00402010
push esi
call fcn.00411cf6
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 0x40db80
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40db65
sub ecx, edx
sar ecx, 1
je 0x40db80
lea edx, [ebp - 0x40]
mov ecx, edi
call fcn.0040bf10
mov ecx, dword [ebp - 0x60]
test ecx, ecx
je 0x40dbc9
cmp dword [ebp - 0x30], 0
je 0x40dbc9
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 0x40dbe1
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 0x40dc01
mov ecx, ebx
call fcn.0040d8d0
mov edi, eax
mov dword [ebp - 0x74], edi
test edi, edi
js 0x40e20d
lea eax, [ebp - 0xb0]
push eax
lea eax, [ebp - 0x88]
push eax
push str.MANIFEST
push 0
call fcn.00410330
mov edi, eax
mov dword [ebp - 0x74], edi
test edi, edi
js 0x40e20d
mov eax, dword [ebp - 0x88]
push 1
movzx eax, byte [eax + 1]
imul eax, eax, 0x468
push eax
call fcn.00410980
mov ebx, eax
mov dword [ebp - 0xa0], ebx
test ebx, ebx
jne 0x40dc69
mov edi, 0x8007000e
push edi
push 0x3af
push str.setupexe.cpp
mov dword [ebp - 0x74], edi
call fcn.00410a40
jmp 0x40e237
mov ecx, dword [ebp - 0x88]
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 - 0x7c], eax
cmp byte [ecx + 2], bl
jbe 0x40dd28
nop
movzx esi, bl
shl esi, 4
add esi, eax
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x8c], eax
mov eax, edx
cmp edx, 0xffffffff
jne 0x40dcb7
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov ecx, dword [ebp - 0x88]
movzx eax, ax
cmp eax, dword [ebp - 0x8c]
jne 0x40dd17
push 0x104
lea eax, [ebp - 0x80]
push eax
call fcn.0040fcc0
mov edi, eax
mov dword [ebp - 0x74], edi
test edi, edi
js 0x40e20d
push 0x104
push dword [ebp - 0x80]
push 0x432f60
call fcn.00410040
mov edi, eax
mov dword [ebp - 0x74], edi
test edi, edi
js 0x40e20d
push 2
push dword [ebp - 0x80]
push esi
call fcn.00410220
mov edi, eax
mov dword [ebp - 0x74], eax
test edi, edi
js 0x40e20d
mov ecx, dword [ebp - 0x88]
mov edx, dword [ebp + 8]
inc bl
mov eax, dword [ebp - 0x7c]
cmp bl, byte [ecx + 2]
jb 0x40dc90
cmp dword [ebp - 0x80], 0
jne 0x40de58
xor al, al
mov byte [ebp - 0x75], al
cmp byte [ecx + 2], al
jbe 0x40de58
mov dword [ebp - 0x8c], 4
lea ebx, [ebx]
movzx esi, al
mov eax, dword [ebp + 8]
shl esi, 4
add esi, dword [ebp - 0x7c]
mov edx, dword [esi + 0xc]
mov dword [ebp - 0x84], edx
cmp eax, 0xffffffff
jne 0x40dd7f
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov ecx, dword [ebp - 0x88]
mov edx, dword [ebp - 0x84]
movzx eax, ax
mov ebx, eax
and ebx, 0x3ff
cmp word [ebp - 0x8c], bx
jne 0x40ddd3
cmp eax, 0xc04
ja 0x40ddb6
je 0x40ddc4
cmp eax, 0x404
je 0x40ddc4
cmp eax, 0x804
jne 0x40ddac
mov eax, 0x804
xor edx, edx
cmp eax, dword [ebp - 0x84]
jmp 0x40dde8
cmp eax, 0x1004
je 0x40dda7
cmp eax, 0x1404
jne 0x40ddac
mov eax, 0x404
xor edx, edx
cmp eax, dword [ebp - 0x84]
jmp 0x40dde8
and edx, 0x3ff
mov dword [ebp - 0x84], edx
xor edx, edx
cmp bx, word [ebp - 0x84]
sete dl
test edx, edx
je 0x40de47
push 0x104
lea eax, [ebp - 0x80]
push eax
call fcn.0040fcc0
mov edi, eax
mov dword [ebp - 0x74], edi
test edi, edi
js 0x40e20d
push 0x104
push dword [ebp - 0x80]
push 0x432f60
call fcn.00410040
mov edi, eax
mov dword [ebp - 0x74], edi
test edi, edi
js 0x40e20d
push 2
push dword [ebp - 0x80]
push esi
call fcn.00410220
mov edi, eax
mov dword [ebp - 0x74], eax
test edi, edi
js 0x40e20d
mov ecx, dword [ebp - 0x88]
mov al, byte [ebp - 0x75]
inc al
mov byte [ebp - 0x75], al
cmp al, byte [ecx + 2]
jb 0x40dd50
mov eax, dword [ebp - 0xa4]
test eax, eax
je 0x40de6f
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 0x88]
xor dl, dl
mov byte [ebp - 0x75], dl
cmp byte [ecx + 1], dl
jbe 0x40e205
lea ecx, [ecx]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x90], eax
movzx eax, dl
imul ebx, eax, 0xa8
movzx eax, byte [ebp - 0x76]
imul esi, eax, 0x468
add ebx, 4
add ebx, ecx
add esi, dword [ebp - 0xa0]
cmp dword [ebp - 0x18], 0
mov dword [ebp - 0x7c], 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 - 0x98]
push eax
call fcn.0040ffb0
mov edi, eax
mov dword [ebp - 0x74], edi
test edi, edi
js 0x40e20d
push 0x27
push esi
lea eax, [ebx + 0x8c]
push eax
call dword [sym.imp.ole32.dll_StringFromGUID2]
mov edi, eax
mov dword [ebp - 0x74], edi
test edi, edi
js 0x40e20d
test dword [ebx + 0xa4], 0x100
je 0x40df23
mov esi, 6
mov dword [ebp - 0x84], esi
jmp 0x40df6f
cmp dword [ebp + 0x14], 7
je 0x40df61
mov edx, dword [ebx + 0x9c]
lea eax, [ebp - 0x90]
push eax
push dword [ebx + 0xa0]
mov ecx, esi
call fcn.0040d350
mov edi, eax
add esp, 8
mov dword [ebp - 0x74], edi
test edi, edi
js 0x40e20d
mov esi, dword [ebp - 0x90]
mov dword [ebp - 0x84], esi
jmp 0x40df67
mov esi, dword [ebp - 0x84]
test esi, esi
je 0x40e1ee
inc byte [ebp - 0x76]
lea edx, [ebp - 0x94]
mov ecx, ebx
call fcn.0040d440
mov edi, eax
mov dword [ebp - 0x74], edi
test edi, edi
js 0x40e20d
mov ecx, dword [ebp - 0x7c]
mov edx, 0x104
mov esi, dword [ebp - 0x94]
add ecx, 0x4e
xor edi, edi
mov dword [ebp - 0x90], 1
mov dword [ebp - 0x74], 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 - 0x74], edi
xor eax, eax
mov word [ecx], ax
test edi, edi
js 0x40e20d
cmp dword [ebp - 0x80], eax
je 0x40e092
test byte [ebx + 0xa4], 0x80
je 0x40e092
push eax
push str._TRANSFORMS_
lea eax, [ebp - 0x98]
push eax
call fcn.0040fd20
mov edi, eax
mov dword [ebp - 0x74], edi
test edi, edi
js 0x40e20d
mov eax, dword [ebx + 0xa4]
test al, 4
je 0x40e06e
mov edx, dword [ebp - 0x80]
lea ecx, [ebp - 0xac]
push ecx
and eax, 1
mov ecx, ebx
push eax
call fcn.0040d250
mov edi, eax
add esp, 8
mov dword [ebp - 0x74], edi
test edi, edi
js 0x40e20d
mov eax, dword [ebp - 0x80]
test eax, eax
je 0x40e064
push eax
call fcn.00410030
mov dword [ebp - 0x80], 0
push 0
push dword [ebp - 0xac]
jmp 0x40e073
push 0
push dword [ebp - 0x80]
call fcn.00410780
push eax
lea eax, [ebp - 0x98]
push eax
call fcn.0040fd20
mov edi, eax
mov dword [ebp - 0x74], edi
test edi, edi
js 0x40e20d
mov eax, dword [ebx + 0xa4]
mov edx, dword [ebp - 0x94]
test al, 4
je 0x40e142
lea ecx, [ebp - 0xa8]
and eax, 1
push ecx
push eax
mov ecx, ebx
call fcn.0040d150
mov edi, eax
add esp, 8
mov dword [ebp - 0x74], edi
test edi, edi
js 0x40e20d
mov ecx, dword [ebp - 0x7c]
mov edx, 0x104
mov eax, dword [ebp - 0xa8]
add ecx, 0x256
xor edi, edi
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x9c], eax
mov esi, eax
mov dword [ebp - 0x74], edi
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x40e113
movzx eax, word [esi]
test ax, ax
je 0x40e113
mov word [ecx], ax
add esi, 2
add ecx, 2
dec edx
jne 0x40e0f3
jmp 0x40e117
test edx, edx
jne 0x40e122
mov edi, 0x8007007a
sub ecx, 2
mov dword [ebp - 0x74], edi
xor eax, eax
mov word [ecx], ax
test edi, edi
js 0x40e20d
mov eax, dword [ebp - 0x7c]
mov edx, dword [ebp - 0x9c]
mov dword [eax + 0x460], 1
mov ecx, dword [ebx + 0xa4]
test cl, 8
jne 0x40e163
test cl, 0x10
mov eax, 3
mov esi, 0x43
cmovne eax, esi
mov dword [ebp - 0x8c], 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 - 0x8c]
push dword [ebp - 0x84]
push dword [ebp - 0xa4]
push dword [ebp - 0x98]
push edx
lea edx, [ebx + 0xc]
mov ebx, dword [ebp - 0x7c]
mov ecx, ebx
call fcn.0040cee0
mov edi, eax
add esp, 0x20
mov dword [ebp - 0x74], edi
test edi, edi
js 0x40e20d
cmp edi, 1
jne 0x40e1cf
cmp dword [ebx + 0x460], 0
je 0x40e1d9
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 0x40e1d9
mov dword [ebx + 0x464], 1
cmp dword [ebp - 0x90], 0
je 0x40e1ee
push dword [ebp - 0x94]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dl, byte [ebp - 0x75]
mov ecx, dword [ebp - 0x88]
inc dl
mov byte [ebp - 0x75], dl
cmp dl, byte [ecx + 1]
jb 0x40de80
test edi, edi
jns 0x40e344
cmp edi, 0x80070bc2
je 0x40e344
cmp edi, 0x80070bc3
je 0x40e344
cmp edi, 0x80070669
je 0x40e344
mov ebx, dword [ebp - 0xa0]
mov al, byte [ebp - 0x76]
test al, al
je 0x40e344
mov edi, dword [ebp - 0xa4]
lea esi, [ebx + 0x256]
movzx ebx, al
cmp dword [esi + 0x20e], 0
je 0x40e310
push 0
push 3
mov dword [ebp - 0x8c], 0
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x9c], 0
call dword [sym.imp.msi.dll_MsiSetPropertyW]
test edi, edi
je 0x40e29f
push 1
push edi
push 0x1fdf
call dword [sym.imp.msi.dll_MsiGetComponentPathW]
push 0
push 0x431e64
lea eax, [ebp - 0x7c]
push eax
call fcn.0040ffb0
test eax, eax
js 0x40e2d2
push 0
push str._REMOVEALL
lea eax, [ebp - 0x7c]
push eax
call fcn.0040fd20
test eax, eax
js 0x40e2d2
push dword [ebp - 0x7c]
push 0
call dword [sym.imp.msi.dll_MsiOpenDatabaseW]
mov eax, dword [ebp - 0x9c]
test eax, eax
je 0x40e2e3
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 0x7c]
test eax, eax
je 0x40e2f0
push eax
call fcn.00410030
mov eax, dword [ebp - 0x8c]
test eax, eax
je 0x40e300
push eax
call fcn.00410030
mov eax, dword [ebp - 0x90]
test eax, eax
je 0x40e310
push eax
call fcn.00410030
cmp word [esi], 0
je 0x40e31d
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp word [esi - 0x208], 0
lea eax, [esi - 0x208]
je 0x40e334
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
add esi, 0x468
dec ebx
jne 0x40e251
mov edi, dword [ebp - 0x74]
mov eax, dword [ebp - 0x80]
test eax, eax
je 0x40e352
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0xa0]
test eax, eax
je 0x40e362
push eax
call fcn.004109b0
mov eax, dword [ebp - 0x94]
test eax, eax
je 0x40e372
push eax
call fcn.00410030
mov eax, dword [ebp - 0x80]
test eax, eax
je 0x40e37f
push eax
call fcn.00410030
mov eax, dword [ebp - 0xa8]
test eax, eax
je 0x40e38f
push eax
call fcn.00410030
mov eax, dword [ebp - 0xac]
test eax, eax
je 0x40e39f
push eax
call fcn.00410030
mov eax, dword [ebp - 0x98]
test eax, eax
je 0x40e3af
push eax
call fcn.00410030
cmp dword [ebp - 0x2c], 8
jb 0x40e3c0
push dword [ebp - 0x40]
call fcn.00411cf6
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 0x40e3e5
push dword [ebp - 0x58]
call fcn.00411cf6
add esp, 4
cmp dword [ebp - 0x14], 8
mov dword [ebp - 0x44], 0xf
mov dword [ebp - 0x48], 0
mov byte [ebp - 0x58], 0
jb 0x40e408
push dword [ebp - 0x28]
call fcn.00411cf6
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 0x40e42d
push dword [ebp - 0x70]
call fcn.00411cf6
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.0041153d
mov esp, ebp
pop ebp
ret