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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x508a01
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 0x415bfb
jmp 0x4156b5
mov edi, dword [esp + 0x10]
mov eax, dword [edi + 0x25c]
cmp eax, dword [ebp + 8]
jne 0x415be9
inc dword [esp + 0x1c]
cmp dword [edi + 0x118], 3
jne 0x415bba
cmp dword [edi + 0x250], esi
jne 0x415bba
cmp dword [0x550334], esi
je 0x415706
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [0x550334]
push eax
push str._INFO___d___WaeMgr_InstallTask_pid:__d
call fcn.00427dfb
add esp, 0xc
push esi
call fcn.004d849d
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], 0x533104
call fcn.0041257e
test eax, eax
je 0x415769
sub esp, 0x1c
lea eax, [ebx + 0x1ac]
mov esi, esp
mov dword [esp + 0x40], esp
push eax
call fcn.00404734
lea eax, [ebx + 0x1c8]
cmp dword [eax + 0x14], 8
jb 0x41575e
mov eax, dword [eax]
push eax
call fcn.0042c1e1
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.004023bf
mov dword [esp + 0x160], esi
cmp dword [edi + 0x120], 8
jle 0x4157d8
lea eax, [esp + 0x40]
push 0x533118
push eax
lea edi, [esp + 0x64]
call fcn.0040bf07
pop ecx
pop ecx
push eax
mov ecx, edi
mov byte [esp + 0x164], 1
call fcn.00402038
push 0
push 1
lea ecx, [esp + 0x48]
mov byte [esp + 0x168], 0
call fcn.00402476
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.0040ec26
cmp byte [eax], 0
je 0x41582a
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.0040edf2
cmp dword [ebx + 0x214], 8
jb 0x41583b
mov edx, dword [ebx + 0x200]
jmp 0x415841
lea edx, [ebx + 0x200]
lea eax, [ebx + 0x1c8]
cmp dword [eax + 0x14], 8
jb 0x41584f
mov eax, dword [eax]
mov ecx, eax
call fcn.0042ef6c
cmp dword [0x550334], 0
mov dword [ebx + 0x24c], eax
je 0x415880
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [0x550334]
push eax
push str._INFO___d___WaeMgr_InstallTask_res:__d
call fcn.00427dfb
add esp, 0xc
push 0
call fcn.004d849d
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 0x41596c
push 0xe
push str.install_finish
call fcn.004023bf
mov byte [esp + 0x160], 2
cmp dword [edi + 0x120], 8
jle 0x415923
lea eax, [esp + 0x94]
push 0x533158
push eax
lea edi, [esp + 0x48]
call fcn.0040bf07
pop ecx
pop ecx
push eax
mov ecx, edi
mov byte [esp + 0x164], 3
call fcn.00402038
push 0
push 1
lea ecx, [esp + 0x9c]
mov byte [esp + 0x168], 2
call fcn.00402476
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.0040ec26
cmp byte [eax], 0
je 0x415a1e
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 0x415a19
push 0xb
push str.intall_fail
call fcn.004023bf
mov byte [esp + 0x160], 4
cmp dword [edi + 0x120], 8
jle 0x4159cd
lea eax, [esp + 0x94]
push 0x53316c
push eax
lea edi, [esp + 0x48]
call fcn.0040bf07
pop ecx
pop ecx
push eax
mov ecx, edi
mov byte [esp + 0x164], 5
call fcn.00402038
push 0
push 1
lea ecx, [esp + 0x9c]
mov byte [esp + 0x168], 4
call fcn.00402476
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.0040ec26
cmp byte [eax], 0
je 0x415a1e
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.0040edf2
push 0
push 1
lea ecx, [esp + 0x48]
mov byte [esp + 0x168], 0
call fcn.00402476
mov esi, dword [edi + 0x254]
mov dword [esp + 0x14], esi
test esi, esi
jne 0x415a50
mov dword [edi + 0x250], 3
jmp 0x415b4a
xor eax, eax
push 0x7e
push eax
mov word [esp + 0xd4], ax
lea eax, [esp + 0xd6]
push eax
call fcn.004d9310
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.00404441
mov eax, esi
cdq
push edx
push eax
lea esi, [esp + 0xb8]
mov byte [esp + 0x168], 6
call fcn.0041dbec
pop ecx
pop ecx
xor esi, esi
push esi
mov edx, eax
lea ecx, [esp + 0x7c]
mov byte [esp + 0x164], 7
call fcn.0040fcef
push esi
push 1
lea ecx, [esp + 0xb8]
call fcn.0040476f
push esi
push 1
lea ecx, [esp + 0x80]
mov byte [esp + 0x168], 0
call fcn.0040476f
cmp dword [ebx], 0x2694
jne 0x415b2b
cmp dword [edi + 0x120], 1
jle 0x415b2b
mov dword [edi + 0x250], 3
mov dword [esp + 0x14], esi
jmp 0x415b35
mov dword [edi + 0x250], 2
lea eax, [edi + 0x1d0]
cmp dword [eax + 0x14], 8
jb 0x415b43
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [0x550334], 0
je 0x415b8b
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 [0x550334]
push eax
push str._INFO___d___WaeMgr_InstallTask:__d___d___d___d___d
call fcn.00427dfb
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.00402476
mov ecx, dword [esp + 0x20]
xor esi, esi
mov eax, dword [edi + 0x250]
cmp eax, 3
je 0x415be5
cmp dword [edi + 0x25c], 1
jne 0x415be9
cmp byte [edi + 0x260], 0
jne 0x415be9
cmp dword [edi + 0x118], 2
je 0x415be5
cmp eax, 2
jne 0x415be9
inc dword [esp + 0x18]
mov edi, dword [edi]
mov dword [esp + 0x10], edi
cmp dword [ecx + 0x750], edi
jne 0x4156b1
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.004d5e0b
mov esp, ebp
pop ebp
ret 4