Function at 0x433680
Capabilities:
Accept command line arguments
Check if file exists
Copy file
Get common file path
Get file attributes
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f04e5
mov eax, dword fs:[0]
push eax
sub esp, 0x6c0
mov eax, dword [0x673f64]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x6b0], edx
mov dword [ebp - 0x6b4], ecx
push 0x104
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push str.lpk.dll
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.005c0d37
add esp, 0xc
lea eax, [ebp - 0x218]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push 0x104
lea eax, [ebp - 0x224]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push str..local
lea eax, [ebp - 0x224]
push 0x10a
push eax
call fcn.005c0d37
add esp, 0xc
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x43373d
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
call fcn.00431eb0
xorps xmm0, xmm0
mov dword [ebp - 0x638], 0
movq qword [ebp - 0x640], xmm0
mov dword [ebp - 0x640], 0
mov dword [ebp - 0x63c], 0
mov dword [ebp - 0x638], 0
lea ecx, [ebp - 0x640]
mov dword [ebp - 4], 0
call fcn.00433540
mov ecx, dword [ebp - 0x63c]
mov eax, 0x2aaaaaab
mov esi, dword [ebp - 0x640]
mov ebx, 1
sub ecx, esi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, ebx
jbe 0x4337fd
mov edi, 0x18
cmp dword [esi + edi + 0x14], 8
lea eax, [esi + edi]
jb 0x4337c0
mov eax, dword [eax]
push eax
push str.run1
call fcn.005b1c6e
add esp, 8
test eax, eax
je 0x433a49
mov ecx, dword [ebp - 0x63c]
mov eax, 0x2aaaaaab
mov esi, dword [ebp - 0x640]
inc ebx
sub ecx, esi
add edi, 0x18
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x4337b4
push 0x104
lea eax, [ebp - 0x42c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor eax, eax
mov dword [ebp - 0x670], 0
mov dword [ebp - 0x660], 0
mov dword [ebp - 0x65c], 7
mov word [ebp - 0x670], ax
lea ecx, [ebp - 0x670]
mov byte [ebp - 4], 1
call fcn.00432d50
lea eax, [ebp - 0x42c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov edx, eax
mov dword [ebp - 0x6a0], 0
mov ecx, edx
mov dword [ebp - 0x690], 0
xor eax, eax
mov dword [ebp - 0x68c], 7
mov word [ebp - 0x6a0], ax
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x433882
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x6a0]
call fcn.004059d0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x6a0]
cmp dword [ebp - 0x68c], 8
lea eax, [ebp - 0x670]
cmovae ecx, dword [ebp - 0x6a0]
cmp dword [ebp - 0x65c], 8
push ecx
cmovae eax, dword [ebp - 0x670]
push eax
lea eax, [ebp - 0x634]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push 1
lea eax, [ebp - 0x634]
push eax
lea eax, [ebp - 0x42c]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x433f35
mov esi, dword [ebp - 0x640]
mov edi, dword [sym.imp.KERNEL32.dll_GetCommandLineW]
call edi
mov ecx, dword [esi + 0x10]
add ecx, 2
mov dword [ebp - 0x658], 0
mov dword [ebp - 0x648], 0
mov dword [ebp - 0x644], 7
lea edx, [eax + ecx*2]
xor eax, eax
mov ecx, edx
mov word [ebp - 0x658], ax
lea esi, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x433940
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x658]
call fcn.004059d0
push 0x11
push str._run1_shortcut_
lea ecx, [ebp - 0x658]
mov byte [ebp - 4], 3
call fcn.00405ae0
lea ecx, [ebp - 0x42c]
mov edx, eax
lea esi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x433980
sub ecx, esi
lea eax, [ebp - 0x42c]
sar ecx, 1
push ecx
push eax
mov ecx, edx
call fcn.00405ae0
push 1
push 0x645518
mov ecx, eax
call fcn.00405ae0
sub esp, 0x18
lea eax, [ebp - 0x658]
mov ecx, esp
mov dword [ebp - 0x6a4], esp
mov bl, 1
push eax
call fcn.0040bd00
sub esp, 0x18
mov byte [ebp - 4], 4
lea eax, [ebp - 0x6a0]
mov dword [ebp - 0x6a8], esp
mov ecx, esp
push eax
call fcn.0040bd00
sub esp, 0x18
mov byte [ebp - 4], 5
lea eax, [ebp - 0x670]
mov ecx, esp
push eax
call fcn.0040bd00
mov cl, bl
mov byte [ebp - 4], 3
call fcn.004320f0
mov byte [ebp - 4], 2
add esp, 0x48
mov edx, dword [ebp - 0x644]
mov esi, eax
cmp edx, 8
jb 0x433ac0
mov ecx, dword [ebp - 0x658]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x433ab6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x43407a
jmp 0x433ab6
mov ecx, dword [ebp - 0x640]
test ecx, ecx
je 0x433aaf
mov edx, dword [ebp - 0x63c]
push ecx
call fcn.00423090
mov ecx, dword [ebp - 0x638]
mov eax, 0x2aaaaaab
mov esi, dword [ebp - 0x640]
add esp, 4
sub ecx, esi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*2]
mov eax, esi
shl ecx, 3
cmp ecx, 0x1000
jb 0x433aa5
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x434098
push ecx
push esi
call fcn.0058a7f7
add esp, 8
mov al, 1
jmp 0x43405e
push edx
push ecx
call fcn.0058a7f7
add esp, 8
cmp esi, 0x304a8
jne 0x433f35
xor eax, eax
mov dword [ebp - 0x658], 0
mov dword [ebp - 0x648], 0
mov dword [ebp - 0x644], 7
mov word [ebp - 0x658], ax
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x688]
push 0x10
mov dword [ebp - 0x688], eax
push str.update_stub_name
mov dword [ebp - 0x678], eax
mov dword [ebp - 0x674], 7
mov word [ebp - 0x688], ax
call fcn.004059d0
push dword [ebp - 0x6b0]
mov edx, dword [ebp - 0x6b4]
lea ecx, [ebp - 0x6cc]
mov byte [ebp - 4], 7
call fcn.00435af0
lea ecx, [ebp - 0x658]
mov byte [ebp - 4], 8
push ecx
lea edx, [ebp - 0x688]
mov ecx, eax
call fcn.00434a20
mov byte [ebp - 4], 7
add esp, 8
mov edx, dword [ebp - 0x6b8]
mov bl, al
cmp edx, 8
jb 0x433ba2
mov ecx, dword [ebp - 0x6cc]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x433b98
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x43407f
push edx
push ecx
call fcn.0058a7f7
add esp, 8
xor eax, eax
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x674]
mov dword [ebp - 0x6bc], 0
mov dword [ebp - 0x6b8], 7
mov word [ebp - 0x6cc], ax
cmp edx, 8
jb 0x433c03
mov ecx, dword [ebp - 0x688]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x433bf9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x43407f
push edx
push ecx
call fcn.0058a7f7
add esp, 8
test bl, bl
je 0x433ef1
cmp dword [ebp - 0x644], 8
lea ecx, [ebp - 0x658]
lea eax, [ebp - 0x670]
cmovae ecx, dword [ebp - 0x658]
cmp dword [ebp - 0x65c], 8
push ecx
cmovae eax, dword [ebp - 0x670]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x433ef1
mov esi, dword [ebp - 0x640]
call edi
mov ecx, dword [esi + 0x10]
add ecx, 2
mov dword [ebp - 0x688], 0
mov dword [ebp - 0x678], 0
mov dword [ebp - 0x674], 7
lea edx, [eax + ecx*2]
xor eax, eax
mov ecx, edx
mov word [ebp - 0x688], ax
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x433c94
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x688]
call fcn.004059d0
push 0x1a
push str._run1_update0_shortcut_
lea ecx, [ebp - 0x688]
mov byte [ebp - 4], 9
call fcn.00405ae0
lea ecx, [ebp - 0x42c]
mov edx, eax
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x433cd1
sub ecx, esi
lea eax, [ebp - 0x42c]
sar ecx, 1
push ecx
push eax
mov ecx, edx
call fcn.00405ae0
push 1
push 0x645518
mov ecx, eax
call fcn.00405ae0
sub esp, 0x18
lea eax, [ebp - 0x688]
mov ecx, esp
mov dword [ebp - 0x6ac], esp
mov bl, 1
push eax
call fcn.0040bd00
sub esp, 0x18
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0x658]
mov dword [ebp - 0x6a8], esp
mov ecx, esp
push eax
call fcn.0040bd00
sub esp, 0x18
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x670]
mov ecx, esp
push eax
call fcn.0040bd00
mov cl, bl
mov byte [ebp - 4], 9
call fcn.004320f0
add esp, 0x48
lea ecx, [ebp - 0x6cc]
mov edx, eax
call fcn.00432360
mov esi, eax
push 0x14
push str._newVersionExitCode
lea ecx, [ebp - 0x688]
mov byte [ebp - 4], 0xc
call fcn.00405ae0
cmp dword [esi + 0x14], 8
mov ecx, esi
jb 0x433d83
mov ecx, dword [esi]
push dword [esi + 0x10]
push ecx
mov ecx, eax
call fcn.00405ae0
mov byte [ebp - 4], 9
mov edx, dword [ebp - 0x6b8]
cmp edx, 8
jb 0x433dd2
mov ecx, dword [ebp - 0x6cc]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x433dc8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x434084
push edx
push ecx
call fcn.0058a7f7
add esp, 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edx, eax
lea ecx, [ebp - 0x6cc]
call fcn.00432360
mov esi, eax
push 0x11
push str._parentProcessID
lea ecx, [ebp - 0x688]
mov byte [ebp - 4], 0xd
call fcn.00405ae0
cmp dword [esi + 0x14], 8
mov ecx, esi
jb 0x433e07
mov ecx, dword [esi]
push dword [esi + 0x10]
push ecx
mov ecx, eax
call fcn.00405ae0
mov byte [ebp - 4], 9
mov edx, dword [ebp - 0x6b8]
cmp edx, 8
jb 0x433e56
mov ecx, dword [ebp - 0x6cc]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x433e4c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x434089
push edx
push ecx
call fcn.0058a7f7
add esp, 8
sub esp, 0x18
lea eax, [ebp - 0x688]
mov ecx, esp
mov dword [ebp - 0x6ac], esp
xor bl, bl
push eax
call fcn.0040bd00
sub esp, 0x18
mov byte [ebp - 4], 0xe
lea eax, [ebp - 0x658]
mov dword [ebp - 0x6a8], esp
mov ecx, esp
push eax
call fcn.0040bd00
sub esp, 0x18
mov byte [ebp - 4], 0xf
lea eax, [ebp - 0x670]
mov ecx, esp
push eax
call fcn.0040bd00
mov cl, bl
mov byte [ebp - 4], 9
call fcn.004320f0
mov byte [ebp - 4], 6
add esp, 0x48
mov edx, dword [ebp - 0x674]
cmp edx, 8
jb 0x433ef1
mov ecx, dword [ebp - 0x688]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x433ee7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x43408e
push edx
push ecx
call fcn.0058a7f7
add esp, 8
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x644]
cmp edx, 8
jb 0x433f35
mov ecx, dword [ebp - 0x658]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x433f2b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x434093
push edx
push ecx
call fcn.0058a7f7
add esp, 8
lea ecx, [ebp - 0x670]
call fcn.00432ed0
mov edx, dword [ebp - 0x68c]
cmp edx, 8
jb 0x433f80
mov ecx, dword [ebp - 0x6a0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x433f76
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x434098
push edx
push ecx
call fcn.0058a7f7
add esp, 8
mov edx, dword [ebp - 0x65c]
xor eax, eax
mov dword [ebp - 0x690], 0
mov dword [ebp - 0x68c], 7
mov word [ebp - 0x6a0], ax
cmp edx, 8
jb 0x433fdd
mov ecx, dword [ebp - 0x670]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x433fd3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x434098
push edx
push ecx
call fcn.0058a7f7
add esp, 8
mov ecx, dword [ebp - 0x640]
xor eax, eax
mov dword [ebp - 0x660], 0
mov dword [ebp - 0x65c], 7
mov word [ebp - 0x670], ax
test ecx, ecx
je 0x43405c
mov edx, dword [ebp - 0x63c]
push ecx
call fcn.00423090
mov ecx, dword [ebp - 0x638]
mov eax, 0x2aaaaaab
mov esi, dword [ebp - 0x640]
add esp, 4
sub ecx, esi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*2]
mov eax, esi
shl ecx, 3
cmp ecx, 0x1000
jb 0x434052
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x434098
push ecx
push esi
call fcn.0058a7f7
add esp, 8
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0058a7e9
mov esp, ebp
pop ebp
ret
call fcn.005b1b1f
call fcn.005b1b1f
call fcn.005b1b1f
call fcn.005b1b1f
call fcn.005b1b1f
call fcn.005b1b1f
call fcn.005b1b1f
int3