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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5089d1
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 0x415bf7
jmp 0x4156b1
mov edi, dword [esp + 0x10]
mov eax, dword [edi + 0x25c]
cmp eax, dword [ebp + 8]
jne 0x415be5
inc dword [esp + 0x1c]
cmp dword [edi + 0x118], 3
jne 0x415bb6
cmp dword [edi + 0x250], esi
jne 0x415bb6
cmp dword [0x550334], esi
je 0x415702
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.00427e2f
add esp, 0xc
push esi
call fcn.004d846d
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], 0x533134
call fcn.0041264a
test eax, eax
je 0x415765
sub esp, 0x1c
lea eax, [ebx + 0x1ac]
mov esi, esp
mov dword [esp + 0x40], esp
push eax
call fcn.004047f4
lea eax, [ebx + 0x1c8]
cmp dword [eax + 0x14], 8
jb 0x41575a
mov eax, dword [eax]
push eax
call fcn.0042c198
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.004024af
mov dword [esp + 0x160], esi
cmp dword [edi + 0x120], 8
jle 0x4157d4
lea eax, [esp + 0x40]
push 0x533148
push eax
lea edi, [esp + 0x64]
call fcn.0040c071
pop ecx
pop ecx
push eax
mov ecx, edi
mov byte [esp + 0x164], 1
call fcn.00402128
push 0
push 1
lea ecx, [esp + 0x48]
mov byte [esp + 0x168], 0
call fcn.00402566
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.0040edb0
cmp byte [eax], 0
je 0x415826
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.0040ef7b
cmp dword [ebx + 0x214], 8
jb 0x415837
mov edx, dword [ebx + 0x200]
jmp 0x41583d
lea edx, [ebx + 0x200]
lea eax, [ebx + 0x1c8]
cmp dword [eax + 0x14], 8
jb 0x41584b
mov eax, dword [eax]
mov ecx, eax
call fcn.0042eed9
cmp dword [0x550334], 0
mov dword [ebx + 0x24c], eax
je 0x41587c
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.00427e2f
add esp, 0xc
push 0
call fcn.004d846d
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 0x415968
push 0xe
push str.install_finish
call fcn.004024af
mov byte [esp + 0x160], 2
cmp dword [edi + 0x120], 8
jle 0x41591f
lea eax, [esp + 0x94]
push 0x533188
push eax
lea edi, [esp + 0x48]
call fcn.0040c071
pop ecx
pop ecx
push eax
mov ecx, edi
mov byte [esp + 0x164], 3
call fcn.00402128
push 0
push 1
lea ecx, [esp + 0x9c]
mov byte [esp + 0x168], 2
call fcn.00402566
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.0040edb0
cmp byte [eax], 0
je 0x415a1a
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 0x415a15
push 0xb
push str.intall_fail
call fcn.004024af
mov byte [esp + 0x160], 4
cmp dword [edi + 0x120], 8
jle 0x4159c9
lea eax, [esp + 0x94]
push 0x53319c
push eax
lea edi, [esp + 0x48]
call fcn.0040c071
pop ecx
pop ecx
push eax
mov ecx, edi
mov byte [esp + 0x164], 5
call fcn.00402128
push 0
push 1
lea ecx, [esp + 0x9c]
mov byte [esp + 0x168], 4
call fcn.00402566
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.0040edb0
cmp byte [eax], 0
je 0x415a1a
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.0040ef7b
push 0
push 1
lea ecx, [esp + 0x48]
mov byte [esp + 0x168], 0
call fcn.00402566
mov esi, dword [edi + 0x254]
mov dword [esp + 0x14], esi
test esi, esi
jne 0x415a4c
mov dword [edi + 0x250], 3
jmp 0x415b46
xor eax, eax
push 0x7e
push eax
mov word [esp + 0xd4], ax
lea eax, [esp + 0xd6]
push eax
call fcn.004d92e0
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.00404501
mov eax, esi
cdq
push edx
push eax
lea esi, [esp + 0xb8]
mov byte [esp + 0x168], 6
call fcn.0041dbe7
pop ecx
pop ecx
xor esi, esi
push esi
mov edx, eax
lea ecx, [esp + 0x7c]
mov byte [esp + 0x164], 7
call fcn.0040fe78
push esi
push 1
lea ecx, [esp + 0xb8]
call fcn.0040482f
push esi
push 1
lea ecx, [esp + 0x80]
mov byte [esp + 0x168], 0
call fcn.0040482f
cmp dword [ebx], 0x2694
jne 0x415b27
cmp dword [edi + 0x120], 1
jle 0x415b27
mov dword [edi + 0x250], 3
mov dword [esp + 0x14], esi
jmp 0x415b31
mov dword [edi + 0x250], 2
lea eax, [edi + 0x1d0]
cmp dword [eax + 0x14], 8
jb 0x415b3f
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [0x550334], 0
je 0x415b87
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.00427e2f
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.00402566
mov ecx, dword [esp + 0x20]
xor esi, esi
mov eax, dword [edi + 0x250]
cmp eax, 3
je 0x415be1
cmp dword [edi + 0x25c], 1
jne 0x415be5
cmp byte [edi + 0x260], 0
jne 0x415be5
cmp dword [edi + 0x118], 2
je 0x415be1
cmp eax, 2
jne 0x415be5
inc dword [esp + 0x18]
mov edi, dword [edi]
mov dword [esp + 0x10], edi
cmp dword [ecx + 0x750], edi
jne 0x4156ad
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.004d5ddb
mov esp, ebp
pop ebp
ret 4