Function at 0x402910
Capabilities:
Check if file exists
Copy file
Create process on windows
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x49ead0
mov eax, dword fs:[0]
push eax
sub esp, 0x964
mov eax, dword [0x4c2c40]
xor eax, esp
mov dword [esp + 0x960], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4c2c40]
xor eax, esp
push eax
lea eax, [esp + 0x978]
mov dword fs:[0], eax
mov eax, dword [esp + 0x98c]
mov ebp, dword [esp + 0x988]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x994]
push eax
mov ebx, 0x4a9c18
lea esi, [esp + 0xd0]
mov edi, edx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x44], ecx
mov byte [esp + 0x1b], 1
call fcn.00403760
add esp, 4
mov esi, eax
mov dword [esp + 0x980], 0
cmp dword [ebp + 0x18], 8
lea eax, [ebp + 4]
mov dword [esp + 0x38], eax
jb 0x4029a4
mov eax, dword [eax]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push esi
mov ebx, eax
lea esi, [esp + 0x140]
call fcn.00403760
add esp, 4
mov byte [esp + 0x980], 2
cmp dword [esp + 0xe4], 8
jb 0x4029df
mov edx, dword [esp + 0xd0]
push edx
call fcn.0045a870
add esp, 4
xor eax, eax
mov dword [esp + 0xe0], eax
mov word [esp + 0xd0], ax
mov eax, dword [esp + 0x18]
push eax
mov ebx, 0x4a9c18
lea esi, [esp + 0x4c]
mov dword [esp + 0xe8], 7
call fcn.00403760
add esp, 4
mov esi, eax
mov byte [esp + 0x980], 3
cmp dword [edi + 0x18], 8
lea eax, [edi + 4]
mov dword [esp + 0x3c], eax
jb 0x402a2a
mov eax, dword [eax]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push esi
mov ebx, eax
lea esi, [esp + 0xec]
call fcn.00403760
add esp, 4
mov byte [esp + 0x980], 5
cmp dword [esp + 0x60], 8
jb 0x402a5f
mov ecx, dword [esp + 0x4c]
push ecx
call fcn.0045a870
add esp, 4
xor ebx, ebx
cmp dword [edi + 0x14], ebx
mov dword [esp + 0x60], 7
mov dword [esp + 0x5c], ebx
mov word [esp + 0x4c], bx
jne 0x402afc
mov byte [esp + 0x17], bl
mov esi, 8
mov eax, dword [esp + 0x18]
push eax
call fcn.004336a0
mov eax, dword [esp + 0x144]
add esp, 4
cmp dword [esp + 0x154], esi
jae 0x402aa8
lea eax, [esp + 0x140]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x402ad1
cmp dword [esp + 0x154], esi
mov eax, dword [esp + 0x140]
jae 0x402aca
lea eax, [esp + 0x140]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [esp + 0x154], esi
mov ecx, dword [esp + 0x140]
jae 0x402ae8
lea ecx, [esp + 0x140]
cmp dword [ebp + 0x18], esi
jb 0x402bd7
mov edx, dword [esp + 0x38]
mov eax, dword [edx]
jmp 0x402bdb
mov edx, dword [esp + 0x18]
push edx
call fcn.004336a0
mov eax, dword [esp + 0xf0]
mov esi, 8
add esp, 4
cmp dword [esp + 0x100], esi
jae 0x402b25
lea eax, [esp + 0xec]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x402b4e
cmp dword [esp + 0x100], esi
mov eax, dword [esp + 0xec]
jae 0x402b47
lea eax, [esp + 0xec]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [esp + 0x100], esi
mov ecx, dword [esp + 0xec]
jae 0x402b65
lea ecx, [esp + 0xec]
cmp dword [edi + 0x18], esi
mov eax, dword [esp + 0x3c]
jb 0x402b70
mov eax, dword [eax]
push ebx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x402a84
cmp dword [esp + 0x100], esi
jb 0x402b9a
mov ecx, dword [esp + 0xec]
push ecx
call fcn.0045a870
add esp, 4
cmp dword [esp + 0x154], esi
mov dword [esp + 0x100], 7
mov word [esp + 0xec], bx
mov dword [esp + 0xfc], ebx
jb 0x402bcd
mov edx, dword [esp + 0x140]
push edx
call fcn.0045a870
add esp, 4
mov eax, 3
jmp 0x403377
mov eax, dword [esp + 0x38]
push ebx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov ebp, 7
mov dword [esp + 0x11c], ebp
mov dword [esp + 0x118], ebx
mov word [esp + 0x108], bx
push 0x208
mov byte [esp + 0x984], 6
call fcn.0045a875
mov edi, eax
mov eax, dword [esp + 0x48]
add esp, 4
cmp dword [eax + 0x18], esi
jb 0x402c24
mov eax, dword [eax + 4]
jmp 0x402c27
add eax, 4
push eax
push 0x104
push edi
call fcn.00478f31
add esp, 0xc
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x402c48
push edi
call dword [sym.imp.SHLWAPI.dll_PathQuoteSpacesW]
mov eax, edi
mov dword [esp + 0x34], ebp
mov dword [esp + 0x30], ebx
mov word [esp + 0x20], bx
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x402c60
sub eax, edx
sar eax, 1
push eax
push edi
lea esi, [esp + 0x24]
call fcn.00401c20
push 0xffffffffffffffff
push ebx
mov eax, esi
lea ecx, [esp + 0x10c]
mov byte [esp + 0x988], 7
call fcn.00401b70
mov ebp, 8
cmp dword [esp + 0x34], ebp
jb 0x402cab
mov eax, dword [esp + 0x20]
push eax
call fcn.0045a870
add esp, 4
mov dword [esp + 0x138], 7
mov dword [esp + 0x134], ebx
mov word [esp + 0x124], bx
push 1
push 0x4a9c1c
lea ecx, [esp + 0x10c]
mov byte [esp + 0x988], 8
call fcn.004035d0
mov esi, dword [esp + 0x990]
cmp esi, 2
je 0x402d94
cmp esi, 9
je 0x402d94
cmp esi, 0xa
je 0x402d94
cmp esi, 0xc
je 0x402d99
cmp esi, 1
je 0x402d43
cmp esi, 0xb
je 0x402d43
cmp esi, 0xd
je 0x402d48
lea ecx, [esp + 0x120]
push ecx
mov edx, str._component_install
call fcn.00403570
lea edx, [esp + 0x104]
push edx
mov edx, str._component_install
call fcn.004035a0
jmp 0x402de2
cmp esi, 0xd
jne 0x402d6e
lea eax, [esp + 0x120]
push eax
mov edx, 0x4a94ec
call fcn.00403570
lea ecx, [esp + 0x104]
push ecx
mov edx, 0x4a94ec
call fcn.004035a0
jmp 0x402de2
lea edx, [esp + 0x120]
push edx
mov edx, str._normal_install
call fcn.00403570
lea eax, [esp + 0x104]
push eax
mov edx, str._normal_install
call fcn.004035a0
jmp 0x402de2
cmp esi, 0xc
jne 0x402db5
push 0xa
push str._silent_au
lea esi, [esp + 0x128]
call fcn.00401c20
push 0xa
push str._silent_au
jmp 0x402dcf
push 0x11
push str._non_notification
lea esi, [esp + 0x128]
call fcn.00401c20
push 0x11
push str._non_notification
lea ecx, [esp + 0x10c]
call fcn.004035d0
mov esi, dword [esp + 0x990]
push edi
call fcn.0045a870
add esp, 4
cmp byte [esp + 0x17], 1
jne 0x40328b
push 0x3c
lea ecx, [esp + 0x94]
push ebx
push ecx
call fcn.0047dfc0
mov ecx, dword [0x4c8544]
add esp, 0xc
cmp ecx, ebx
mov dword [esp + 0x90], 0x3c
mov dword [esp + 0x94], 0x440
mov dword [esp + 0x98], ebx
jne 0x402e50
push 4
call fcn.0045a845
add esp, 4
cmp eax, ebx
je 0x402e46
mov dword [eax], vtable.CWinAUSystemUtil.0
jmp 0x402e48
xor eax, eax
mov ecx, eax
mov dword [0x4c8544], ecx
mov edx, dword [ecx]
mov eax, dword [edx + 0x1c]
call eax
test al, al
jne 0x402e66
mov dword [esp + 0x9c], 0x4a9c20
cmp dword [esp + 0x100], ebp
jb 0x402e7f
mov ecx, dword [esp + 0xec]
mov dword [esp + 0xa0], ecx
jmp 0x402e8d
lea edx, [esp + 0xec]
mov dword [esp + 0xa0], edx
mov eax, dword [esp + 0x18]
cmp dword [eax + 0x18], ebp
mov dword [esp + 0xa4], str._execute_auwrapper
jb 0x402ea6
mov eax, dword [eax + 4]
jmp 0x402ea9
add eax, 4
mov dword [esp + 0xa8], eax
mov dword [esp + 0xac], ebx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x70], ebx
mov byte [esp + 0x980], 9
push 1
mov edi, 7
push 0x4a9464
lea esi, [esp + 0x24]
mov dword [esp + 0x3c], edi
mov dword [esp + 0x38], ebx
mov word [esp + 0x28], bx
call fcn.00401c20
mov ecx, esi
push ecx
lea esi, [esp + 0x68]
mov byte [esp + 0x984], 0xa
call fcn.00401650
mov byte [esp + 0x980], 9
cmp dword [esp + 0x34], ebp
jb 0x402f1c
mov edx, dword [esp + 0x20]
push edx
call fcn.0045a870
add esp, 4
mov eax, dword [esp + 0x44]
push eax
lea esi, [esp + 0x68]
call fcn.00401650
lea ecx, [esp + 0x13c]
push ecx
call fcn.00401650
lea edx, [esp + 0x120]
push edx
call fcn.00401650
mov dword [esp + 0x170], edi
mov dword [esp + 0x16c], ebx
mov word [esp + 0x15c], bx
mov eax, esi
push eax
lea ecx, [esp + 0x78]
mov byte [esp + 0x984], 0xb
call fcn.00431350
add esp, 4
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x160]
mov byte [esp + 0x988], 0xc
call fcn.00401b70
mov byte [esp + 0x980], 0xb
cmp dword [esp + 0x8c], ebp
jb 0x402fa6
mov ecx, dword [esp + 0x78]
push ecx
call fcn.0045a870
add esp, 4
push 9
push str.LAUNCH_UI
lea esi, [esp + 0x50]
mov dword [esp + 0x68], edi
mov dword [esp + 0x64], ebx
mov word [esp + 0x54], bx
call fcn.00401c20
mov byte [esp + 0x980], 0xd
push 2
push 0x4a947c
lea esi, [esp + 0x24]
mov dword [esp + 0x3c], edi
mov dword [esp + 0x38], ebx
mov word [esp + 0x28], bx
call fcn.00401c20
lea edx, [esp + 0x48]
push edx
lea ecx, [esp + 0x15c]
mov edx, esi
mov byte [esp + 0x984], 0xe
call fcn.004323e0
add esp, 4
cmp dword [esp + 0x34], ebp
jb 0x403019
mov eax, dword [esp + 0x20]
push eax
call fcn.0045a870
add esp, 4
mov byte [esp + 0x980], 0xb
cmp dword [esp + 0x60], ebp
mov dword [esp + 0x34], edi
mov dword [esp + 0x30], ebx
mov word [esp + 0x20], bx
jb 0x403041
mov ecx, dword [esp + 0x4c]
push ecx
call fcn.0045a870
add esp, 4
lea edx, [esp + 0x90]
push edx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
cmp eax, ebx
jne 0x4031d7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x4c7
jne 0x403115
mov edx, 0x4a9464
lea eax, [esp + 0x74]
call fcn.004015e0
mov edx, str.CANCEL_UI
lea eax, [esp + 0x1c]
mov byte [esp + 0x980], 0xf
call fcn.004015e0
mov edx, 0x4a947c
lea eax, [esp + 0x48]
mov byte [esp + 0x980], 0x10
call fcn.004015e0
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x78]
lea edx, [esp + 0x4c]
mov byte [esp + 0x984], 0x11
call fcn.004323e0
add esp, 4
cmp dword [esp + 0x60], ebp
jb 0x4030d2
mov ecx, dword [esp + 0x4c]
push ecx
call fcn.0045a870
add esp, 4
cmp dword [esp + 0x34], ebp
mov dword [esp + 0x60], edi
mov dword [esp + 0x5c], ebx
mov word [esp + 0x4c], bx
jb 0x4030f2
mov edx, dword [esp + 0x20]
push edx
call fcn.0045a870
add esp, 4
cmp dword [esp + 0x8c], ebp
mov dword [esp + 0x34], edi
mov dword [esp + 0x30], ebx
mov word [esp + 0x20], bx
jb 0x403115
mov eax, dword [esp + 0x78]
push eax
call fcn.0045a870
add esp, 4
cmp dword [esp + 0x170], ebp
jb 0x40312e
mov ecx, dword [esp + 0x15c]
push ecx
call fcn.0045a870
add esp, 4
lea esi, [esp + 0x64]
mov dword [esp + 0x170], edi
mov dword [esp + 0x16c], ebx
mov word [esp + 0x15c], bx
call fcn.004019a0
cmp dword [esp + 0x138], ebp
jb 0x403166
mov edx, dword [esp + 0x124]
push edx
call fcn.0045a870
add esp, 4
cmp dword [esp + 0x11c], ebp
mov dword [esp + 0x138], edi
mov dword [esp + 0x134], ebx
mov word [esp + 0x124], bx
jb 0x403195
mov eax, dword [esp + 0x108]
push eax
call fcn.0045a870
add esp, 4
cmp dword [esp + 0x100], ebp
mov dword [esp + 0x11c], edi
mov dword [esp + 0x118], ebx
mov word [esp + 0x108], bx
jb 0x4031c4
mov ecx, dword [esp + 0xec]
push ecx
call fcn.0045a870
add esp, 4
cmp dword [esp + 0x154], ebp
mov dword [esp + 0x100], edi
jmp 0x402bac
push 0x7fe
lea eax, [esp + 0x17a]
push ebx
push eax
mov word [esp + 0x180], bx
call fcn.0047dfc0
mov ecx, dword [esp + 0xd4]
add esp, 0xc
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcessId]
push eax
push 0x4a9c0c
lea edx, [esp + 0x17c]
push 0x400
push edx
call fcn.00478ef6
lea eax, [esp + 0x184]
add esp, 0x10
lea edx, [eax + 2]
jmp 0x403230
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x403230
mov esi, dword [esp + 0x40]
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x178]
push eax
call fcn.00401c20
cmp dword [esp + 0x170], ebp
jb 0x40326a
mov ecx, dword [esp + 0x15c]
push ecx
call fcn.0045a870
add esp, 4
lea esi, [esp + 0x64]
mov dword [esp + 0x170], edi
mov dword [esp + 0x16c], ebx
mov word [esp + 0x15c], bx
call fcn.004019a0
jmp 0x4032a8
cmp esi, 0xd
mov esi, dword [esp + 0x40]
jne 0x40329d
push 3
push 0x4a9c7c
jmp 0x4032a3
push ebx
push 0x4a9c14
call fcn.00401c20
mov edx, dword [esp + 0x990]
push ebx
push edx
lea eax, [esp + 0x144]
push eax
lea ecx, [esp + 0x110]
call fcn.00403410
add esp, 0xc
cmp dword [esp + 0x138], ebp
mov edi, eax
jb 0x4032e3
mov ecx, dword [esp + 0x124]
push ecx
call fcn.0045a870
add esp, 4
cmp dword [esp + 0x11c], ebp
mov esi, 7
mov dword [esp + 0x138], esi
mov dword [esp + 0x134], ebx
mov word [esp + 0x124], bx
jb 0x403317
mov edx, dword [esp + 0x108]
push edx
call fcn.0045a870
add esp, 4
cmp dword [esp + 0x100], ebp
mov dword [esp + 0x11c], esi
mov dword [esp + 0x118], ebx
mov word [esp + 0x108], bx
jb 0x403346
mov eax, dword [esp + 0xec]
push eax
call fcn.0045a870
add esp, 4
cmp dword [esp + 0x154], ebp
mov dword [esp + 0x100], esi
mov dword [esp + 0xfc], ebx
mov word [esp + 0xec], bx
jb 0x403375
mov ecx, dword [esp + 0x140]
push ecx
call fcn.0045a870
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x978]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x960]
xor ecx, esp
call fcn.00478599
add esp, 0x970
ret