Function at 0x415c00
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42145c
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x42e00c]
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 esi, edx
mov dword [ebp - 0x78], esi
mov edi, ecx
mov dword [ebp - 0x64], edi
mov al, byte [ebp + 0xc]
push 0
push 0
mov byte [ebp - 0x5d], al
mov byte [ebp - 0x74], al
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], 0
call fcn.00408210
mov dword [ebp - 0x70], eax
mov dword [ebp - 4], 0
mov ebx, 0x601
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], 0
mov byte [ebp - 4], 1
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x42ead8]
mov dword [ebp - 0x5c], ecx
cmp eax, dword [ecx + 4]
jle 0x415ccf
push 0x42ead8
call fcn.0041e8f4
add esp, 4
cmp dword [0x42ead8], 0xffffffff
jne 0x415ccf
mov byte [ebp - 4], 2
call fcn.00417c30
push 0x421f10
call fcn.0041ec5e
add esp, 4
mov byte [ebp - 4], 1
push 0x42ead8
call fcn.0041e8b5
add esp, 4
call fcn.0040c660
push esi
push edi
push str.Attempting_to_install___applet_ID:__s_nPath:__s
mov dword [ebp - 0x68], eax
call fcn.00401b10
mov esi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
add esp, 0xc
cmp byte [ebp + 8], 0
je 0x415dd1
mov ecx, edi
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x415d10
sub ecx, edx
push ecx
push edi
lea ecx, [ebp - 0x28]
call fcn.004024e0
mov edi, dword [ebp - 0x68]
push 0xffffffffffffffff
mov byte [ebp - 4], 3
push dword [edi + 8]
call esi
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
call fcn.00407ba0
mov edi, dword [edi]
mov esi, eax
cmp esi, edi
je 0x415d72
cmp dword [esi + 0x24], 0x10
lea eax, [esi + 0x10]
lea edx, [eax + 0x10]
jb 0x415d52
mov eax, dword [eax]
push dword [edx]
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0x18]
cmovae ecx, dword [ebp - 0x28]
push eax
call fcn.00407a30
shr eax, 0x1f
add esp, 8
test al, al
je 0x415d74
mov esi, edi
cmp esi, edi
mov edi, dword [ebp - 0x68]
jne 0x415d7f
xor esi, esi
jmp 0x415d94
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
lea eax, [ebp - 0x80]
push eax
call fcn.00408170
mov eax, dword [ebp - 0x80]
mov esi, dword [eax + 0x28]
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.00402470
test esi, esi
js 0x415db2
cmp esi, 3
jl 0x415dc8
push dword [ebp - 0x64]
push esi
push str.AppState_incorrect:__d_for_appid:__s__n
call fcn.00401b10
add esp, 0xc
jmp 0x4162b0
mov edi, dword [ebp - 0x64]
mov esi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, 0x42eaec
call fcn.00419290
mov ecx, 0x42eaec
call fcn.00419670
mov ecx, edi
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x415e00
sub ecx, edx
push ecx
push edi
lea ecx, [ebp - 0x28]
call fcn.004024e0
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 4
push eax
mov ecx, 0x42eaec
call fcn.004194c0
test al, al
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
sete bl
call fcn.00402470
test bl, bl
je 0x415e82
mov edx, edi
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x415e51
sub edx, ecx
lea ecx, [ebp - 0x28]
push edx
push edi
call fcn.004024e0
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 5
push eax
mov ecx, 0x42eaec
call fcn.00419580
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.00402470
mov ecx, dword [ebp - 0x5c]
mov eax, dword [0x42eac8]
cmp eax, dword [ecx + 4]
jle 0x415ec7
push 0x42eac8
call fcn.0041e8f4
add esp, 4
cmp dword [0x42eac8], 0xffffffff
jne 0x415ec7
call fcn.00412d10
push 0x421e30
call fcn.0041ec5e
add esp, 4
push 0x42eac8
call fcn.0041e8b5
add esp, 4
push 0xffffffffffffffff
push dword [0x42ea60]
xor bl, bl
call esi
cmp byte [0x42ea98], 0
mov eax, 1
mov esi, dword [0x42ea9c]
push dword [0x42ea60]
movzx ebx, bl
cmovne ebx, eax
mov dword [ebp - 0x64], esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
test bl, bl
je 0x4162ab
test esi, esi
je 0x4162ab
cmp byte [ebp - 0x5d], 0
lea ecx, [ebp - 0x58]
push 0xffffffffffffffff
push 0
je 0x415f1e
push 0x42ed8c
jmp 0x415f23
push 0x42edbc
call fcn.004026d0
mov esi, dword [ebp - 0x78]
push 0
push esi
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__waccess_s]
add esp, 8
test eax, eax
je 0x415f52
push str.prepare_install_failed___applet_file_not_found
call fcn.00401b10
add esp, 4
mov ebx, 0x101
jmp 0x4162b0
push esi
lea ecx, [ebp - 0x40]
call fcn.00405200
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 6
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.004038f0
test al, al
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x2c]
sete bl
cmp eax, 8
jb 0x415f87
inc eax
push eax
push dword [ebp - 0x40]
call fcn.004025b0
test bl, bl
je 0x415fa2
push str.invalid_applet_file_extension__n
call fcn.00401b10
add esp, 4
mov ebx, 0x1007
jmp 0x4162b0
cmp byte [ebp + 8], 0
je 0x41605d
push edi
lea ecx, [ebp - 0x28]
call fcn.004023a0
push esi
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 7
call fcn.00405200
push dword [ebp - 0x74]
mov ecx, dword [ebp - 0x68]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 8
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.00403260
mov ebx, eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x5c], ebx
call fcn.004022d0
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.00402470
test ebx, ebx
jne 0x4162b0
mov eax, dword [ebp - 0x70]
mov esi, dword [eax]
cmp esi, eax
je 0x4160c7
nop dword [eax + eax]
mov ecx, dword [esi + 0xc]
mov edx, dword [ebp - 0x64]
sub ecx, dword [esi + 8]
push ecx
push dword [esi + 8]
mov eax, dword [edx]
mov ecx, edx
push edi
call dword [eax + 0x10]
mov ebx, eax
mov dword [ebp - 0x5c], ebx
cmp ebx, 0x108
je 0x4160a5
cmp ebx, 0x404
je 0x4160cf
test ebx, ebx
je 0x4160c7
push ebx
push str.failed_to_install_applet_from_DALP__error_code:_0x_x_n
call fcn.00401b10
mov esi, dword [esi]
add esp, 8
cmp esi, dword [ebp - 0x70]
jne 0x416010
jmp 0x4160c7
push esi
lea ecx, [ebp - 0x40]
call fcn.00405200
push dword [ebp - 0x74]
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 9
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.00404020
mov ebx, eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x5c], ebx
call fcn.004022d0
test ebx, ebx
je 0x415ffe
push str.failed_getting_applet_blobs_from_dalp_file_n
call fcn.00401b10
add esp, 4
jmp 0x4162a1
mov ebx, dword [ebp - 0x64]
mov ecx, ebx
push edi
mov eax, dword [ebx]
call dword [eax + 0x14]
mov ecx, dword [esi + 0xc]
sub ecx, dword [esi + 8]
mov eax, dword [ebx]
push ecx
push dword [esi + 8]
mov ecx, ebx
push edi
call dword [eax + 0x10]
mov ebx, eax
mov dword [ebp - 0x5c], ebx
cmp ebx, 0x404
jne 0x416114
call fcn.00415ae0
test al, al
je 0x416106
mov eax, dword [ebp - 0x70]
mov esi, dword [eax]
cmp esi, eax
je 0x416106
mov ecx, dword [esi + 0xc]
mov edx, dword [ebp - 0x64]
sub ecx, dword [esi + 8]
push ecx
push dword [esi + 8]
mov eax, dword [edx]
mov ecx, edx
push edi
call dword [eax + 0x10]
mov ebx, eax
mov dword [ebp - 0x5c], ebx
test ebx, ebx
je 0x416106
mov esi, dword [esi]
cmp esi, dword [ebp - 0x70]
jne 0x4160e1
push ebx
push str.failed_to_install_applet_from_DALP__error_code:_0x_x_n
call fcn.00401b10
add esp, 8
test ebx, ebx
je 0x41612b
push ebx
push str.failed_to_install_applet_from_DALP__error_code:_0x_x_n
call fcn.00401b10
mov esi, dword [ebp - 0x74]
add esp, 8
jmp 0x4161a1
cmp byte [ebp + 8], 0
je 0x4162a7
mov ecx, edi
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x416150
sub ecx, edx
push ecx
push edi
lea ecx, [ebp - 0x28]
call fcn.004024e0
mov esi, dword [ebp - 0x74]
lea eax, [ebp - 0x28]
mov ecx, dword [ebp - 0x68]
push esi
push eax
mov byte [ebp - 4], 0xa
call fcn.00403a80
test al, al
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
sete bl
call fcn.00402470
test bl, bl
je 0x4162a7
mov ebx, 0x601
mov dword [ebp - 0x5c], ebx
mov ecx, dword [ebp - 0x64]
push edi
mov eax, dword [ecx]
call dword [eax + 0x14]
cmp byte [ebp + 8], 0
je 0x4162a1
mov ecx, edi
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4161c2
sub ecx, edx
push ecx
push edi
lea ecx, [ebp - 0x40]
call fcn.004024e0
mov byte [ebp - 4], 0xb
call fcn.0040c660
push esi
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00404c10
cmp dword [eax + 0x14], 8
jb 0x4161f4
mov eax, dword [eax]
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wremove]
mov eax, dword [ebp - 0x14]
add esp, 4
cmp eax, 8
jb 0x416210
inc eax
push eax
push dword [ebp - 0x28]
call fcn.004025b0
xor eax, eax
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov byte [ebp - 4], 1
call fcn.00402470
mov ecx, edi
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x416247
sub ecx, edx
push ecx
push edi
lea ecx, [ebp - 0x40]
call fcn.004024e0
mov esi, dword [ebp - 0x68]
lea eax, [ebp - 0x40]
push eax
mov ecx, esi
mov byte [ebp - 4], 0xc
call fcn.004041e0
cmp eax, 1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
sete bl
call fcn.00402470
test bl, bl
je 0x41629e
push edi
lea ecx, [ebp - 0x40]
call fcn.004023a0
lea eax, [ebp - 0x40]
mov ecx, esi
push eax
call fcn.00403d20
lea ecx, [ebp - 0x40]
call fcn.00402470
mov ebx, dword [ebp - 0x5c]
test ebx, ebx
je 0x4162bd
jmp 0x4162b0
xor ebx, ebx
jmp 0x4162bd
mov ebx, 0x300
push str.Applet_installation_failed
call fcn.00401b10
add esp, 4
lea ecx, [ebp - 0x58]
call fcn.00402470
mov eax, dword [ebp - 0x70]
mov edi, dword [eax]
mov dword [eax], eax
mov eax, dword [ebp - 0x70]
mov dword [eax + 4], eax
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x6c], 0
cmp edi, eax
je 0x4162fc
mov esi, dword [edi]
lea ecx, [edi + 8]
call fcn.00406000
push edi
call fcn.0041e769
mov eax, dword [ebp - 0x70]
add esp, 4
mov edi, esi
cmp esi, eax
jne 0x4162e0
push eax
call fcn.0041e769
add esp, 4
mov eax, ebx
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.0041e725
mov esp, ebp
pop ebp
ret