Function at 0x461b77
Capabilities:
Copy file
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x499110
mov eax, dword fs:[0]
push eax
sub esp, 0x120
mov eax, dword [0x4bea34]
xor eax, esp
mov dword [esp + 0x118], eax
push ebx
push esi
push edi
mov eax, dword [0x4bea34]
xor eax, esp
push eax
lea eax, [esp + 0x130]
mov dword fs:[0], eax
xor esi, esi
mov edi, ecx
mov dword [esp + 0x10], edi
mov dword [esp + 0xec], 7
mov dword [esp + 0xe8], esi
mov word [esp + 0xd8], si
push str.InstallDir
lea eax, [esp + 0x1c]
mov dword [esp + 0x13c], esi
call fcn.004040e1
lea eax, [esp + 0xd4]
lea ecx, [edi + 0x28]
push eax
lea edi, [esp + 0x1c]
mov byte [esp + 0x13c], 1
call fcn.0043bdf0
pop ecx
mov bl, al
neg bl
push esi
sbb bl, bl
push 1
mov esi, edi
inc bl
mov byte [esp + 0x140], 0
call fcn.004012a8
test bl, bl
je 0x461c60
push 0
push 1
lea esi, [esp + 0xdc]
call fcn.004012a8
push 0xa
pop eax
mov ecx, dword [esp + 0x130]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x118]
xor ecx, esp
call fcn.00470af5
mov esp, ebp
pop ebp
ret
xor esi, esi
mov dword [esp + 0x108], 7
mov dword [esp + 0x104], esi
mov word [esp + 0xf4], si
push str.UninstallPath
lea eax, [esp + 0x1c]
mov byte [esp + 0x13c], 2
call fcn.004040e1
mov byte [esp + 0x138], 3
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0xf0]
push eax
lea edi, [esp + 0x1c]
add ecx, 0x28
call fcn.0043bdf0
pop ecx
mov bl, al
neg bl
push esi
sbb bl, bl
push 1
mov esi, edi
inc bl
mov byte [esp + 0x140], 2
call fcn.004012a8
test bl, bl
je 0x461ce6
push 0
push 1
lea esi, [esp + 0xf8]
call fcn.004012a8
jmp 0x461c29
lea eax, [esp + 0xf0]
push eax
lea edi, [esp + 0x18]
call fcn.0044243d
xor ebx, ebx
mov dword [esp + 0xd0], 7
mov dword [esp + 0xcc], ebx
mov word [esp + 0xbc], bx
lea ecx, [esp + 0xb8]
mov byte [esp + 0x138], 5
call fcn.00442107
mov eax, edi
call fcn.004427cc
push eax
lea eax, [esp + 0x110]
call fcn.004040e1
push 8
mov byte [esp + 0x13c], 6
mov ecx, dword [esp + 0xc0]
pop edi
cmp dword [esp + 0xd0], edi
jae 0x461d5d
lea ecx, [esp + 0xbc]
cmp dword [esp + 0x124], edi
mov eax, dword [esp + 0x110]
jae 0x461d74
lea eax, [esp + 0x110]
push ebx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x461dd2
push 0xa
pop edi
push ebx
xor ebx, ebx
inc ebx
push ebx
lea esi, [esp + 0x114]
call fcn.004012a8
push 0
push ebx
lea esi, [esp + 0xc0]
call fcn.004012a8
lea eax, [esp + 0x14]
call fcn.004424c3
push 0
push ebx
lea esi, [esp + 0xf8]
call fcn.004012a8
push 0
push ebx
lea esi, [esp + 0xdc]
call fcn.004012a8
mov eax, edi
jmp 0x461c3c
lea eax, [esp + 0x34]
push eax
call fcn.004371f6
lea eax, [esp + 0xd4]
push eax
push ecx
push str.___
push ecx
lea eax, [esp + 0x44]
push str.__UNINSTALL
push eax
mov byte [esp + 0x150], 7
call fcn.0043a357
add esp, 0xc
push eax
call fcn.0043a357
add esp, 0xc
push eax
call fcn.0043a1eb
pop ecx
pop ecx
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x38]
call fcn.004372b0
cmp dword [esp + 0xd0], edi
mov ecx, dword [esp + 0xbc]
jae 0x461e3b
lea ecx, [esp + 0xbc]
cmp dword [eax + 0x18], edi
jb 0x461e45
mov eax, dword [eax + 4]
jmp 0x461e48
add eax, 4
lea edx, [esp + 0x10]
push edx
push ecx
push eax
mov eax, dword [esp + 0x1c]
add eax, 4
push eax
call fcn.00462029
push ebx
push 1
lea esi, [esp + 0x20]
call fcn.004012a8
cmp dword [esp + 0xd0], edi
mov eax, dword [esp + 0xbc]
jae 0x461e7f
lea eax, [esp + 0xbc]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x461ee0
jbe 0x461eca
cmp eax, 2
jbe 0x461eb2
cmp eax, 4
jne 0x461eca
lea eax, [esp + 0x34]
mov byte [esp + 0x138], 6
call fcn.00434d0a
push 0xc
jmp 0x461d83
lea eax, [esp + 0x34]
mov byte [esp + 0x138], 6
call fcn.00434d0a
push 0xb
jmp 0x461d83
lea eax, [esp + 0x34]
mov byte [esp + 0x138], 6
call fcn.00434d0a
jmp 0x461d81
lea eax, [esp + 0x34]
mov byte [esp + 0x138], 6
call fcn.00434d0a
xor edi, edi
jmp 0x461d84