Function at 0x4176f0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4215bc
mov eax, dword fs:[0]
push eax
sub esp, 0x30
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 dword [ebp - 0x30], edx
mov edi, ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2c], eax
mov eax, dword fs:[0x2c]
mov esi, dword [eax]
mov eax, dword [0x42ead8]
cmp eax, dword [esi + 4]
jle 0x41777e
push 0x42ead8
call fcn.0041e8f4
add esp, 4
cmp dword [0x42ead8], 0xffffffff
jne 0x41777e
mov dword [ebp - 4], 0
call fcn.00417c30
push 0x421f10
call fcn.0041ec5e
add esp, 4
mov dword [ebp - 4], 0xffffffff
push 0x42ead8
call fcn.0041e8b5
add esp, 4
call fcn.0040c660
mov ebx, eax
push 0xffffffffffffffff
mov dword [ebp - 0x34], ebx
push dword [ebx + 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
mov ecx, ebx
call fcn.00403d60
test al, al
jne 0x4177a3
xor esi, esi
jmp 0x4177b5
push edi
lea eax, [ebp - 0x3c]
mov ecx, ebx
push eax
call fcn.00408170
mov eax, dword [ebp - 0x3c]
mov esi, dword [eax + 0x28]
push dword [ebx + 8]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
cmp esi, 2
ja 0x41792a
mov ecx, 0x42eaec
call fcn.00419290
mov ecx, 0x42eaec
call fcn.00419670
push edi
mov ecx, 0x42eaec
call fcn.004194c0
test al, al
jne 0x4177f5
push edi
mov ecx, 0x42eaec
call fcn.00419580
call fcn.004050e0
mov esi, eax
push 0xffffffffffffffff
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esi + 0x3c]
push dword [esi]
mov bl, byte [esi + 0x38]
mov dword [ebp - 0x38], eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
test bl, bl
setne al
test al, al
je 0x417923
mov ebx, dword [ebp - 0x38]
test ebx, ebx
je 0x417923
mov esi, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x34]
push edi
push esi
call fcn.004034f0
test eax, eax
jne 0x417946
mov eax, dword [ebx]
mov ecx, ebx
push esi
push dword [ebp - 0x30]
call dword [eax + 0x40]
mov esi, eax
cmp esi, 0x2306
jne 0x41787c
cmp dword [edi + 0x14], 0x10
jb 0x417863
mov ecx, dword [edi]
jmp 0x417865
mov ecx, edi
mov eax, dword [ebx]
push ecx
mov ecx, ebx
call dword [eax + 0x14]
push dword [ebp - 0x2c]
mov eax, dword [ebx]
mov ecx, ebx
push dword [ebp - 0x30]
call dword [eax + 0x40]
mov esi, eax
cmp esi, 0x404
jne 0x41789c
call fcn.00415ae0
test al, al
je 0x4178a0
push dword [ebp - 0x2c]
mov eax, dword [ebx]
mov ecx, ebx
push dword [ebp - 0x30]
call dword [eax + 0x40]
mov esi, eax
test esi, esi
je 0x4178b0
push esi
push str.failed_to_install_applet_from_DALP__error_code:_0x_x_n
call fcn.00401b10
add esp, 8
jmp 0x4178d8
mov ecx, dword [ebp - 0x34]
push 1
push edi
call fcn.00403a80
test al, al
jne 0x41791f
mov esi, 0x601
cmp dword [edi + 0x14], 0x10
jb 0x4178ce
mov ecx, dword [edi]
jmp 0x4178d0
mov ecx, edi
mov eax, dword [ebx]
push ecx
mov ecx, ebx
call dword [eax + 0x14]
call fcn.0040c660
push 1
push edi
lea eax, [ebp - 0x28]
push eax
call fcn.00404c10
cmp dword [eax + 0x14], 8
jb 0x4178f1
mov eax, dword [eax]
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wremove]
add esp, 4
lea ecx, [ebp - 0x28]
call fcn.004022d0
mov ebx, dword [ebp - 0x34]
mov ecx, ebx
push edi
call fcn.004041e0
cmp eax, 1
jne 0x41791b
push edi
mov ecx, ebx
call fcn.00403d20
mov eax, esi
jmp 0x417946
xor eax, eax
jmp 0x417946
mov eax, 0x300
jmp 0x417946
cmp dword [edi + 0x14], 0x10
jb 0x417932
mov edi, dword [edi]
push edi
push esi
push str.AppState_incorrect:__d_for_appid:__s__n
call fcn.00401b10
add esp, 0xc
mov eax, 0x601
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