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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x508260
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 0x41532a
jmp 0x414de4
mov edi, dword [esp + 0x10]
mov eax, dword [edi + 0x25c]
cmp eax, dword [ebp + 8]
jne 0x415318
inc dword [esp + 0x1c]
cmp dword [edi + 0x118], 3
jne 0x4152e9
cmp dword [edi + 0x250], esi
jne 0x4152e9
cmp dword [0x5500d4], esi
je 0x414e35
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.0042749e
add esp, 0xc
push esi
call fcn.004d7e6d
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], 0x5330e8
call fcn.00411c2a
test eax, eax
je 0x414e98
sub esp, 0x1c
lea eax, [ebx + 0x1ac]
mov esi, esp
mov dword [esp + 0x40], esp
push eax
call fcn.00412537
lea eax, [ebx + 0x1c8]
cmp dword [eax + 0x14], 8
jb 0x414e8d
mov eax, dword [eax]
push eax
call fcn.0042ba5a
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.004023d3
mov dword [esp + 0x160], esi
cmp dword [edi + 0x120], 8
jle 0x414f07
lea eax, [esp + 0x40]
push 0x5330fc
push eax
lea edi, [esp + 0x64]
call fcn.0040b5b5
pop ecx
pop ecx
push eax
mov ecx, edi
mov byte [esp + 0x164], 1
call fcn.0040204c
push 0
push 1
lea ecx, [esp + 0x48]
mov byte [esp + 0x168], 0
call fcn.0040248a
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.0040e2b6
cmp byte [eax], 0
je 0x414f59
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.0040e481
cmp dword [ebx + 0x214], 8
jb 0x414f6a
mov edx, dword [ebx + 0x200]
jmp 0x414f70
lea edx, [ebx + 0x200]
lea eax, [ebx + 0x1c8]
cmp dword [eax + 0x14], 8
jb 0x414f7e
mov eax, dword [eax]
mov ecx, eax
call fcn.0042e7e3
cmp dword [0x5500d4], 0
mov dword [ebx + 0x24c], eax
je 0x414faf
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.0042749e
add esp, 0xc
push 0
call fcn.004d7e6d
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 0x41509b
push 0xe
push str.install_finish
call fcn.004023d3
mov byte [esp + 0x160], 2
cmp dword [edi + 0x120], 8
jle 0x415052
lea eax, [esp + 0x94]
push 0x53313c
push eax
lea edi, [esp + 0x48]
call fcn.0040b5b5
pop ecx
pop ecx
push eax
mov ecx, edi
mov byte [esp + 0x164], 3
call fcn.0040204c
push 0
push 1
lea ecx, [esp + 0x9c]
mov byte [esp + 0x168], 2
call fcn.0040248a
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.0040e2b6
cmp byte [eax], 0
je 0x41514d
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 0x415148
push 0xb
push str.intall_fail
call fcn.004023d3
mov byte [esp + 0x160], 4
cmp dword [edi + 0x120], 8
jle 0x4150fc
lea eax, [esp + 0x94]
push 0x533150
push eax
lea edi, [esp + 0x48]
call fcn.0040b5b5
pop ecx
pop ecx
push eax
mov ecx, edi
mov byte [esp + 0x164], 5
call fcn.0040204c
push 0
push 1
lea ecx, [esp + 0x9c]
mov byte [esp + 0x168], 4
call fcn.0040248a
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.0040e2b6
cmp byte [eax], 0
je 0x41514d
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.0040e481
push 0
push 1
lea ecx, [esp + 0x48]
mov byte [esp + 0x168], 0
call fcn.0040248a
mov esi, dword [edi + 0x254]
mov dword [esp + 0x14], esi
test esi, esi
jne 0x41517f
mov dword [edi + 0x250], 3
jmp 0x415279
xor eax, eax
push 0x7e
push eax
mov word [esp + 0xd4], ax
lea eax, [esp + 0xd6]
push eax
call fcn.004d8ce0
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.0040ed76
mov eax, esi
cdq
push edx
push eax
lea esi, [esp + 0xb8]
mov byte [esp + 0x168], 6
call fcn.0041d330
pop ecx
pop ecx
xor esi, esi
push esi
mov edx, eax
lea ecx, [esp + 0x7c]
mov byte [esp + 0x164], 7
call fcn.0040f44d
push esi
push 1
lea ecx, [esp + 0xb8]
call fcn.00403de3
push esi
push 1
lea ecx, [esp + 0x80]
mov byte [esp + 0x168], 0
call fcn.00403de3
cmp dword [ebx], 0x2694
jne 0x41525a
cmp dword [edi + 0x120], 1
jle 0x41525a
mov dword [edi + 0x250], 3
mov dword [esp + 0x14], esi
jmp 0x415264
mov dword [edi + 0x250], 2
lea eax, [edi + 0x1d0]
cmp dword [eax + 0x14], 8
jb 0x415272
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [0x5500d4], 0
je 0x4152ba
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.0042749e
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.0040248a
mov ecx, dword [esp + 0x20]
xor esi, esi
mov eax, dword [edi + 0x250]
cmp eax, 3
je 0x415314
cmp dword [edi + 0x25c], 1
jne 0x415318
cmp byte [edi + 0x260], 0
jne 0x415318
cmp dword [edi + 0x118], 2
je 0x415314
cmp eax, 2
jne 0x415318
inc dword [esp + 0x18]
mov edi, dword [edi]
mov dword [esp + 0x10], edi
cmp dword [ecx + 0x750], edi
jne 0x414de0
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.004d57db
mov esp, ebp
pop ebp
ret 4