Function at 0x414de1
Capabilities:
Delete file
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5081a4
mov eax, dword fs:[0]
push eax
sub esp, 0x148
mov eax, dword [0x54b3f0]
xor eax, esp
mov dword [esp + 0x140], eax
push ebx
push esi
push edi
mov eax, dword [0x54b3f0]
xor eax, esp
push eax
lea eax, [esp + 0x158]
mov dword fs:[0], eax
mov eax, dword [ecx + 0x750]
mov edi, dword [eax]
xor esi, esi
mov dword [esp + 0x20], ecx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x10], edi
cmp eax, edi
je 0x41538f
jmp 0x414e49
mov edi, dword [esp + 0x10]
mov eax, dword [edi + 0x25c]
cmp eax, dword [ebp + 8]
jne 0x41537d
inc dword [esp + 0x1c]
cmp dword [edi + 0x118], 3
jne 0x41534e
cmp dword [edi + 0x250], esi
jne 0x41534e
cmp dword [0x5500d4], esi
je 0x414e9a
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [0x5500d4]
push eax
push str._INFO___d___WaeMgr_InstallTask_pid:__d
call fcn.00427581
add esp, 0xc
push esi
call fcn.004d7ddd
lea ebx, [edi + 8]
lea ecx, [ebx + 0x1ac]
mov dword [edi + 0x240], eax
mov dword [edi + 0x244], edx
mov dword [edi + 0x250], 1
mov dword [esp], 0x533118
call fcn.00411c9c
test eax, eax
je 0x414efd
sub esp, 0x1c
lea eax, [ebx + 0x1ac]
mov esi, esp
mov dword [esp + 0x40], esp
push eax
call fcn.004125a9
lea eax, [ebx + 0x1c8]
cmp dword [eax + 0x14], 8
jb 0x414ef2
mov eax, dword [eax]
push eax
call fcn.0042bb25
add esp, 0x20
xor esi, esi
push 0xd
push str.begin_install
lea ecx, [esp + 0x64]
mov dword [esp + 0x78], 0xf
mov dword [esp + 0x74], esi
mov byte [esp + 0x64], 0
call fcn.00402366
mov dword [esp + 0x160], esi
cmp dword [edi + 0x120], 8
jle 0x414f6c
lea eax, [esp + 0x40]
push 0x53312c
push eax
lea edi, [esp + 0x64]
call fcn.0040b5c9
pop ecx
pop ecx
push eax
mov ecx, edi
mov byte [esp + 0x164], 1
call fcn.00401fdf
push 0
push 1
lea ecx, [esp + 0x48]
mov byte [esp + 0x168], 0
call fcn.0040241d
mov edi, dword [esp + 0x10]
mov esi, dword [edi + 0x120]
mov eax, dword [ebx + 0xd8]
imul esi, esi, 0xa
add esi, dword [edi + 0x124]
mov dword [esp + 0x38], eax
mov eax, dword [ebx + 0xdc]
mov dword [esp + 0x3c], eax
mov eax, dword [ebx + 0x254]
mov dword [esp + 0x14], eax
call fcn.0040e2c5
cmp byte [eax], 0
je 0x414fbe
push 0
push 0
push dword [esp + 0x44]
lea eax, [esp + 0x68]
push dword [esp + 0x44]
push esi
push eax
push dword [esp + 0x2c]
call fcn.0040e490
cmp dword [ebx + 0x214], 8
jb 0x414fcf
mov edx, dword [ebx + 0x200]
jmp 0x414fd5
lea edx, [ebx + 0x200]
lea eax, [ebx + 0x1c8]
cmp dword [eax + 0x14], 8
jb 0x414fe3
mov eax, dword [eax]
mov ecx, eax
call fcn.0042e8ae
cmp dword [0x5500d4], 0
mov dword [ebx + 0x24c], eax
je 0x415014
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [0x5500d4]
push eax
push str._INFO___d___WaeMgr_InstallTask_res:__d
call fcn.00427581
add esp, 0xc
push 0
call fcn.004d7ddd
pop ecx
mov ecx, eax
sub ecx, dword [edi + 0x240]
mov dword [edi + 0x248], eax
xor eax, eax
mov dword [esp + 0x14], ecx
mov dword [edi + 0x24c], edx
mov dword [esp + 0x54], 0xf
mov dword [esp + 0x50], eax
mov byte [esp + 0x40], al
lea ecx, [esp + 0x40]
cmp dword [edi + 0x254], eax
jne 0x415100
push 0xe
push str.install_finish
call fcn.00402366
mov byte [esp + 0x160], 2
cmp dword [edi + 0x120], 8
jle 0x4150b7
lea eax, [esp + 0x94]
push 0x53316c
push eax
lea edi, [esp + 0x48]
call fcn.0040b5c9
pop ecx
pop ecx
push eax
mov ecx, edi
mov byte [esp + 0x164], 3
call fcn.00401fdf
push 0
push 1
lea ecx, [esp + 0x9c]
mov byte [esp + 0x168], 2
call fcn.0040241d
mov edi, dword [esp + 0x10]
mov eax, dword [ebx + 0xd8]
mov dword [esp + 0x28], eax
mov eax, dword [ebx + 0xdc]
mov dword [esp + 0x2c], eax
mov eax, dword [ebx + 0x254]
mov dword [esp + 0x10], eax
call fcn.0040e2c5
cmp byte [eax], 0
je 0x4151b2
push dword [esp + 0x14]
lea eax, [esp + 0x44]
push 0
push dword [esp + 0x34]
push dword [esp + 0x34]
push esi
push eax
push dword [esp + 0x28]
jmp 0x4151ad
push 0xb
push str.intall_fail
call fcn.00402366
mov byte [esp + 0x160], 4
cmp dword [edi + 0x120], 8
jle 0x415161
lea eax, [esp + 0x94]
push 0x533180
push eax
lea edi, [esp + 0x48]
call fcn.0040b5c9
pop ecx
pop ecx
push eax
mov ecx, edi
mov byte [esp + 0x164], 5
call fcn.00401fdf
push 0
push 1
lea ecx, [esp + 0x9c]
mov byte [esp + 0x168], 4
call fcn.0040241d
mov edi, dword [esp + 0x10]
mov eax, dword [ebx + 0x24c]
mov dword [esp + 0x10], eax
mov eax, dword [ebx + 0xd8]
mov dword [esp + 0x30], eax
mov eax, dword [ebx + 0xdc]
mov dword [esp + 0x34], eax
mov eax, dword [ebx + 0x254]
mov dword [esp + 0x24], eax
call fcn.0040e2c5
cmp byte [eax], 0
je 0x4151b2
push dword [esp + 0x14]
lea eax, [esp + 0x44]
push dword [esp + 0x14]
push dword [esp + 0x3c]
push dword [esp + 0x3c]
push esi
push eax
push dword [esp + 0x3c]
call fcn.0040e490
push 0
push 1
lea ecx, [esp + 0x48]
mov byte [esp + 0x168], 0
call fcn.0040241d
mov esi, dword [edi + 0x254]
mov dword [esp + 0x14], esi
test esi, esi
jne 0x4151e4
mov dword [edi + 0x250], 3
jmp 0x4152de
xor eax, eax
push 0x7e
push eax
mov word [esp + 0xd4], ax
lea eax, [esp + 0xd6]
push eax
call fcn.004d8c50
add esp, 0xc
push dword [ebx]
lea eax, [esp + 0xd0]
push str.install_err__d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
and dword [esp + 0x94], 0
xor eax, eax
mov word [esp + 0x84], ax
add esp, 0xc
lea eax, [esp + 0xcc]
push eax
lea ecx, [esp + 0x7c]
mov dword [esp + 0x90], 7
call fcn.0040ed85
mov eax, esi
cdq
push edx
push eax
lea esi, [esp + 0xb8]
mov byte [esp + 0x168], 6
call fcn.0041d309
pop ecx
pop ecx
xor esi, esi
push esi
mov edx, eax
lea ecx, [esp + 0x7c]
mov byte [esp + 0x164], 7
call fcn.0040f45c
push esi
push 1
lea ecx, [esp + 0xb8]
call fcn.00403da4
push esi
push 1
lea ecx, [esp + 0x80]
mov byte [esp + 0x168], 0
call fcn.00403da4
cmp dword [ebx], 0x2694
jne 0x4152bf
cmp dword [edi + 0x120], 1
jle 0x4152bf
mov dword [edi + 0x250], 3
mov dword [esp + 0x14], esi
jmp 0x4152c9
mov dword [edi + 0x250], 2
lea eax, [edi + 0x1d0]
cmp dword [eax + 0x14], 8
jb 0x4152d7
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [0x5500d4], 0
je 0x41531f
push dword [ebx + 0x248]
movzx eax, byte [ebx + 0x258]
push dword [ebx + 0x110]
push eax
push dword [ebx + 0x254]
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [0x5500d4]
push eax
push str._INFO___d___WaeMgr_InstallTask:__d___d___d___d___d
call fcn.00427581
add esp, 0x1c
mov eax, dword [esp + 0x20]
push dword [esp + 0x14]
mov ecx, dword [eax + 0x760]
mov eax, dword [ecx]
push ebx
call dword [eax + 8]
or dword [esp + 0x160], 0xffffffff
push 0
push 1
lea ecx, [esp + 0x64]
call fcn.0040241d
mov ecx, dword [esp + 0x20]
xor esi, esi
mov eax, dword [edi + 0x250]
cmp eax, 3
je 0x415379
cmp dword [edi + 0x25c], 1
jne 0x41537d
cmp byte [edi + 0x260], 0
jne 0x41537d
cmp dword [edi + 0x118], 2
je 0x415379
cmp eax, 2
jne 0x41537d
inc dword [esp + 0x18]
mov edi, dword [edi]
mov dword [esp + 0x10], edi
cmp dword [ecx + 0x750], edi
jne 0x414e45
mov ecx, dword [esp + 0x18]
xor eax, eax
cmp dword [esp + 0x1c], ecx
sete al
mov ecx, dword [esp + 0x158]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x140]
xor ecx, esp
call fcn.004d574b
mov esp, ebp
pop ebp
ret 4