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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42a4c0
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.0040ea60
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 0x40da53
cmp byte [edx], 0
jne 0x40da38
xor ecx, ecx
jmp 0x40da49
mov ecx, edx
lea esi, [ecx + 1]
lea ecx, [ecx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40da40
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 0x40dad5
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 0x40dad5
cmp word [esi], 0
jne 0x40daae
xor ecx, ecx
jmp 0x40dac2
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40dab3
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x70]
call fcn.00402010
push esi
call fcn.00411c96
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 0x40db10
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40daf5
sub ecx, edx
sar ecx, 1
je 0x40db10
lea edx, [ebp - 0x40]
mov ecx, edi
call fcn.0040bf10
mov ecx, dword [ebp - 0x60]
test ecx, ecx
je 0x40db59
cmp dword [ebp - 0x30], 0
je 0x40db59
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 0x40db71
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 0x40db91
mov ecx, ebx
call fcn.0040d860
mov edi, eax
mov dword [ebp - 0x78], edi
test edi, edi
js 0x40e1bc
lea eax, [ebp - 0xb4]
push eax
lea eax, [ebp - 0x8c]
push eax
push str.MANIFEST
push 0
call fcn.004102d0
mov edi, eax
mov dword [ebp - 0x78], edi
test edi, edi
js 0x40e1bc
mov eax, dword [ebp - 0x8c]
push 1
movzx eax, byte [eax + 1]
imul eax, eax, 0x468
push eax
call fcn.00410920
mov ebx, eax
mov dword [ebp - 0x90], ebx
test ebx, ebx
jne 0x40dbf6
mov edi, 0x8007000e
push edi
push 0x3a1
push str.setupexe.cpp
call fcn.004109e0
jmp 0x40e2f9
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 0x40dcc1
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 0x40dc47
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov ecx, dword [ebp - 0x8c]
movzx eax, ax
cmp eax, dword [ebp - 0x94]
jne 0x40dcb0
push 0x104
lea eax, [ebp - 0x84]
push eax
call fcn.0040fc60
mov edi, eax
mov dword [ebp - 0x78], edi
test edi, edi
js 0x40e1bc
push 0x104
push dword [ebp - 0x84]
push 0x432f60
call fcn.0040ffe0
mov edi, eax
mov dword [ebp - 0x78], edi
test edi, edi
js 0x40e1bc
push 2
push dword [ebp - 0x84]
push esi
call fcn.004101c0
mov edi, eax
mov dword [ebp - 0x78], eax
test edi, edi
js 0x40e1bc
mov ecx, dword [ebp - 0x8c]
mov edx, dword [ebp + 8]
inc bl
mov eax, dword [ebp - 0x80]
cmp bl, byte [ecx + 2]
jb 0x40dc20
cmp dword [ebp - 0x84], 0
jne 0x40ddf7
xor al, al
mov byte [ebp - 0x71], al
cmp byte [ecx + 2], al
jbe 0x40ddf7
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 0x40dd15
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 0x40dd69
cmp eax, 0xc04
ja 0x40dd4c
je 0x40dd5a
cmp eax, 0x404
je 0x40dd5a
cmp eax, 0x804
jne 0x40dd42
mov eax, 0x804
xor edx, edx
cmp eax, dword [ebp - 0x88]
jmp 0x40dd7e
cmp eax, 0x1004
je 0x40dd3d
cmp eax, 0x1404
jne 0x40dd42
mov eax, 0x404
xor edx, edx
cmp eax, dword [ebp - 0x88]
jmp 0x40dd7e
and edx, 0x3ff
mov dword [ebp - 0x88], edx
xor edx, edx
cmp bx, word [ebp - 0x88]
sete dl
test edx, edx
je 0x40dde6
push 0x104
lea eax, [ebp - 0x84]
push eax
call fcn.0040fc60
mov edi, eax
mov dword [ebp - 0x78], edi
test edi, edi
js 0x40e1bc
push 0x104
push dword [ebp - 0x84]
push 0x432f60
call fcn.0040ffe0
mov edi, eax
mov dword [ebp - 0x78], edi
test edi, edi
js 0x40e1bc
push 2
push dword [ebp - 0x84]
push esi
call fcn.004101c0
mov edi, eax
mov dword [ebp - 0x78], eax
test edi, edi
js 0x40e1bc
mov ecx, dword [ebp - 0x8c]
mov al, byte [ebp - 0x71]
inc al
mov byte [ebp - 0x71], al
cmp al, byte [ecx + 2]
jb 0x40dce6
mov eax, dword [ebp - 0xa8]
test eax, eax
je 0x40de0e
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 0x40e1b4
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 0x40de6c
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
jmp 0x40de71
mov eax, 0x431e64
push 0
push eax
lea eax, [ebp - 0x9c]
push eax
call fcn.0040ff50
mov edi, eax
mov dword [ebp - 0x78], edi
test edi, edi
js 0x40e1bc
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 0x40e1bc
test dword [ebx + 0xa4], 0x100
je 0x40dec3
mov esi, 6
mov dword [ebp - 0x88], esi
jmp 0x40df0f
cmp dword [ebp + 0x14], 7
je 0x40df01
mov edx, dword [ebx + 0x9c]
lea eax, [ebp - 0x98]
push eax
push dword [ebx + 0xa0]
mov ecx, esi
call fcn.0040d2e0
mov edi, eax
add esp, 8
mov dword [ebp - 0x78], edi
test edi, edi
js 0x40e1bc
mov esi, dword [ebp - 0x98]
mov dword [ebp - 0x88], esi
jmp 0x40df07
mov esi, dword [ebp - 0x88]
test esi, esi
je 0x40e19d
inc byte [ebp - 0x79]
lea edx, [ebp - 0xa0]
mov ecx, ebx
call fcn.0040d3d0
mov edi, eax
mov dword [ebp - 0x78], edi
test edi, edi
js 0x40e1bc
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 0x40df70
movzx eax, word [esi]
test ax, ax
je 0x40df70
mov word [ecx], ax
add esi, 2
add ecx, 2
dec edx
jne 0x40df50
jmp 0x40df74
test edx, edx
jne 0x40df7f
mov edi, 0x8007007a
sub ecx, 2
mov dword [ebp - 0x78], edi
xor eax, eax
mov word [ecx], ax
test edi, edi
js 0x40e1bc
cmp dword [ebp - 0x84], eax
je 0x40e041
test byte [ebx + 0xa4], 0x80
je 0x40e041
push eax
push str._TRANSFORMS_
lea eax, [ebp - 0x9c]
push eax
call fcn.0040fcc0
mov edi, eax
mov dword [ebp - 0x78], edi
test edi, edi
js 0x40e1bc
mov eax, dword [ebx + 0xa4]
test al, 4
je 0x40e01a
mov edx, dword [ebp - 0x84]
lea ecx, [ebp - 0xb0]
push ecx
and eax, 1
mov ecx, ebx
push eax
call fcn.0040d1e0
mov edi, eax
add esp, 8
mov dword [ebp - 0x78], edi
test edi, edi
js 0x40e1bc
mov eax, dword [ebp - 0x84]
test eax, eax
je 0x40e010
push eax
call fcn.0040ffd0
mov dword [ebp - 0x84], 0
push 0
push dword [ebp - 0xb0]
jmp 0x40e022
push 0
push dword [ebp - 0x84]
call fcn.00410720
push eax
lea eax, [ebp - 0x9c]
push eax
call fcn.0040fcc0
mov edi, eax
mov dword [ebp - 0x78], edi
test edi, edi
js 0x40e1bc
mov eax, dword [ebx + 0xa4]
mov edx, dword [ebp - 0xa0]
test al, 4
je 0x40e0f1
lea ecx, [ebp - 0xac]
and eax, 1
push ecx
push eax
mov ecx, ebx
call fcn.0040d0e0
mov edi, eax
add esp, 8
mov dword [ebp - 0x78], edi
test edi, edi
js 0x40e1bc
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 0x40e0c2
movzx eax, word [esi]
test ax, ax
je 0x40e0c2
mov word [ecx], ax
add esi, 2
add ecx, 2
dec edx
jne 0x40e0a2
jmp 0x40e0c6
test edx, edx
jne 0x40e0d1
mov edi, 0x8007007a
sub ecx, 2
mov dword [ebp - 0x78], edi
xor eax, eax
mov word [ecx], ax
test edi, edi
js 0x40e1bc
mov eax, dword [ebp - 0x80]
mov edx, dword [ebp - 0xa4]
mov dword [eax + 0x460], 1
mov ecx, dword [ebx + 0xa4]
test cl, 8
jne 0x40e112
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.0040ce70
mov edi, eax
add esp, 0x20
mov dword [ebp - 0x78], edi
test edi, edi
js 0x40e1bc
cmp edi, 1
jne 0x40e17e
cmp dword [ebx + 0x460], 0
je 0x40e188
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 0x40e188
mov dword [ebx + 0x464], 1
cmp dword [ebp - 0x98], 0
je 0x40e19d
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 0x40de20
test edi, edi
jns 0x40e2f3
cmp edi, 0x80070bc2
je 0x40e2f3
cmp edi, 0x80070bc3
je 0x40e2f3
cmp edi, 0x80070669
je 0x40e2f3
mov al, byte [ebp - 0x79]
test al, al
je 0x40e2f3
mov esi, dword [ebp - 0x90]
mov edi, dword [ebp - 0xa8]
add esi, 0x256
movzx ebx, al
cmp dword [esi + 0x20e], 0
je 0x40e2bf
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 0x40e24e
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.0040ff50
test eax, eax
js 0x40e281
push 0
push str._REMOVEALL
lea eax, [ebp - 0x80]
push eax
call fcn.0040fcc0
test eax, eax
js 0x40e281
push dword [ebp - 0x80]
push 0
call dword [sym.imp.msi.dll_MsiOpenDatabaseW]
mov eax, dword [ebp - 0xa4]
test eax, eax
je 0x40e292
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 0x80]
test eax, eax
je 0x40e29f
push eax
call fcn.0040ffd0
mov eax, dword [ebp - 0x94]
test eax, eax
je 0x40e2af
push eax
call fcn.0040ffd0
mov eax, dword [ebp - 0x98]
test eax, eax
je 0x40e2bf
push eax
call fcn.0040ffd0
cmp word [esi], 0
je 0x40e2cc
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp word [esi - 0x208], 0
lea eax, [esi - 0x208]
je 0x40e2e3
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
add esi, 0x468
dec ebx
jne 0x40e200
mov edi, dword [ebp - 0x78]
mov ebx, dword [ebp - 0x90]
mov eax, dword [ebp - 0x84]
test eax, eax
je 0x40e30a
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test ebx, ebx
je 0x40e314
push ebx
call fcn.00410950
mov eax, dword [ebp - 0xa0]
test eax, eax
je 0x40e324
push eax
call fcn.0040ffd0
mov eax, dword [ebp - 0x84]
test eax, eax
je 0x40e334
push eax
call fcn.0040ffd0
mov eax, dword [ebp - 0xac]
test eax, eax
je 0x40e344
push eax
call fcn.0040ffd0
mov eax, dword [ebp - 0xb0]
test eax, eax
je 0x40e354
push eax
call fcn.0040ffd0
mov eax, dword [ebp - 0x9c]
test eax, eax
je 0x40e364
push eax
call fcn.0040ffd0
cmp dword [ebp - 0x2c], 8
jb 0x40e375
push dword [ebp - 0x40]
call fcn.00411c96
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 0x40e39a
push dword [ebp - 0x58]
call fcn.00411c96
add esp, 4
cmp dword [ebp - 0x14], 8
mov dword [ebp - 0x44], 0xf
mov dword [ebp - 0x48], 0
mov byte [ebp - 0x58], 0
jb 0x40e3bd
push dword [ebp - 0x28]
call fcn.00411c96
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 0x40e3e2
push dword [ebp - 0x70]
call fcn.00411c96
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.004114dd
mov esp, ebp
pop ebp
ret