Function at 0x4336b0
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 0x5f14b5
mov eax, dword fs:[0]
push eax
sub esp, 0x6c0
mov eax, dword [0x675f64]
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.005c1207
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.005c1207
add esp, 0xc
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x43376d
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
call fcn.00431ee0
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.00433570
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 0x43382d
mov edi, 0x18
cmp dword [esi + edi + 0x14], 8
lea eax, [esi + edi]
jb 0x4337f0
mov eax, dword [eax]
push eax
push str.run1
call fcn.005b212e
add esp, 8
test eax, eax
je 0x433a79
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 0x4337e4
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.00432d80
lea eax, [ebp - 0x42c]
push eax
call dword [0x67d02c]
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 0x4338b2
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x6a0]
call fcn.004059e0
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 [0x67d050]
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 0x433f65
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 0x433970
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x658]
call fcn.004059e0
push 0x11
push str._run1_shortcut_
lea ecx, [ebp - 0x658]
mov byte [ebp - 4], 3
call fcn.00405af0
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 0x4339b0
sub ecx, esi
lea eax, [ebp - 0x42c]
sar ecx, 1
push ecx
push eax
mov ecx, edx
call fcn.00405af0
push 1
push 0x646908
mov ecx, eax
call fcn.00405af0
sub esp, 0x18
lea eax, [ebp - 0x658]
mov ecx, esp
mov dword [ebp - 0x6a4], esp
mov bl, 1
push eax
call fcn.0040bd10
sub esp, 0x18
mov byte [ebp - 4], 4
lea eax, [ebp - 0x6a0]
mov dword [ebp - 0x6a8], esp
mov ecx, esp
push eax
call fcn.0040bd10
sub esp, 0x18
mov byte [ebp - 4], 5
lea eax, [ebp - 0x670]
mov ecx, esp
push eax
call fcn.0040bd10
mov cl, bl
mov byte [ebp - 4], 3
call fcn.00432120
mov byte [ebp - 4], 2
add esp, 0x48
mov edx, dword [ebp - 0x644]
mov esi, eax
cmp edx, 8
jb 0x433af0
mov ecx, dword [ebp - 0x658]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x433ae6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4340aa
jmp 0x433ae6
mov ecx, dword [ebp - 0x640]
test ecx, ecx
je 0x433adf
mov edx, dword [ebp - 0x63c]
push ecx
call fcn.004230b0
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 0x433ad5
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4340c8
push ecx
push esi
call fcn.0058acab
add esp, 8
mov al, 1
jmp 0x43408e
push edx
push ecx
call fcn.0058acab
add esp, 8
cmp esi, 0x304a8
jne 0x433f65
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.004059e0
push dword [ebp - 0x6b0]
mov edx, dword [ebp - 0x6b4]
lea ecx, [ebp - 0x6cc]
mov byte [ebp - 4], 7
call fcn.00435b20
lea ecx, [ebp - 0x658]
mov byte [ebp - 4], 8
push ecx
lea edx, [ebp - 0x688]
mov ecx, eax
call fcn.00434a50
mov byte [ebp - 4], 7
add esp, 8
mov edx, dword [ebp - 0x6b8]
mov bl, al
cmp edx, 8
jb 0x433bd2
mov ecx, dword [ebp - 0x6cc]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x433bc8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4340af
push edx
push ecx
call fcn.0058acab
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 0x433c33
mov ecx, dword [ebp - 0x688]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x433c29
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4340af
push edx
push ecx
call fcn.0058acab
add esp, 8
test bl, bl
je 0x433f21
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 [0x67d050]
lea eax, [ebp - 0x218]
push eax
call dword [0x67d058]
test eax, eax
je 0x433f21
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 0x433cc4
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x688]
call fcn.004059e0
push 0x1a
push str._run1_update0_shortcut_
lea ecx, [ebp - 0x688]
mov byte [ebp - 4], 9
call fcn.00405af0
lea ecx, [ebp - 0x42c]
mov edx, eax
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x433d01
sub ecx, esi
lea eax, [ebp - 0x42c]
sar ecx, 1
push ecx
push eax
mov ecx, edx
call fcn.00405af0
push 1
push 0x646908
mov ecx, eax
call fcn.00405af0
sub esp, 0x18
lea eax, [ebp - 0x688]
mov ecx, esp
mov dword [ebp - 0x6ac], esp
mov bl, 1
push eax
call fcn.0040bd10
sub esp, 0x18
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0x658]
mov dword [ebp - 0x6a8], esp
mov ecx, esp
push eax
call fcn.0040bd10
sub esp, 0x18
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x670]
mov ecx, esp
push eax
call fcn.0040bd10
mov cl, bl
mov byte [ebp - 4], 9
call fcn.00432120
add esp, 0x48
lea ecx, [ebp - 0x6cc]
mov edx, eax
call fcn.00432390
mov esi, eax
push 0x14
push str._newVersionExitCode
lea ecx, [ebp - 0x688]
mov byte [ebp - 4], 0xc
call fcn.00405af0
cmp dword [esi + 0x14], 8
mov ecx, esi
jb 0x433db3
mov ecx, dword [esi]
push dword [esi + 0x10]
push ecx
mov ecx, eax
call fcn.00405af0
mov byte [ebp - 4], 9
mov edx, dword [ebp - 0x6b8]
cmp edx, 8
jb 0x433e02
mov ecx, dword [ebp - 0x6cc]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x433df8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4340b4
push edx
push ecx
call fcn.0058acab
add esp, 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edx, eax
lea ecx, [ebp - 0x6cc]
call fcn.00432390
mov esi, eax
push 0x11
push str._parentProcessID
lea ecx, [ebp - 0x688]
mov byte [ebp - 4], 0xd
call fcn.00405af0
cmp dword [esi + 0x14], 8
mov ecx, esi
jb 0x433e37
mov ecx, dword [esi]
push dword [esi + 0x10]
push ecx
mov ecx, eax
call fcn.00405af0
mov byte [ebp - 4], 9
mov edx, dword [ebp - 0x6b8]
cmp edx, 8
jb 0x433e86
mov ecx, dword [ebp - 0x6cc]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x433e7c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4340b9
push edx
push ecx
call fcn.0058acab
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.0040bd10
sub esp, 0x18
mov byte [ebp - 4], 0xe
lea eax, [ebp - 0x658]
mov dword [ebp - 0x6a8], esp
mov ecx, esp
push eax
call fcn.0040bd10
sub esp, 0x18
mov byte [ebp - 4], 0xf
lea eax, [ebp - 0x670]
mov ecx, esp
push eax
call fcn.0040bd10
mov cl, bl
mov byte [ebp - 4], 9
call fcn.00432120
mov byte [ebp - 4], 6
add esp, 0x48
mov edx, dword [ebp - 0x674]
cmp edx, 8
jb 0x433f21
mov ecx, dword [ebp - 0x688]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x433f17
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4340be
push edx
push ecx
call fcn.0058acab
add esp, 8
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x644]
cmp edx, 8
jb 0x433f65
mov ecx, dword [ebp - 0x658]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x433f5b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4340c3
push edx
push ecx
call fcn.0058acab
add esp, 8
lea ecx, [ebp - 0x670]
call fcn.00432f00
mov edx, dword [ebp - 0x68c]
cmp edx, 8
jb 0x433fb0
mov ecx, dword [ebp - 0x6a0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x433fa6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4340c8
push edx
push ecx
call fcn.0058acab
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 0x43400d
mov ecx, dword [ebp - 0x670]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x434003
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4340c8
push edx
push ecx
call fcn.0058acab
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 0x43408c
mov edx, dword [ebp - 0x63c]
push ecx
call fcn.004230b0
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 0x434082
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4340c8
push ecx
push esi
call fcn.0058acab
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.0058ac9d
mov esp, ebp
pop ebp
ret
call fcn.005b1fdf
call fcn.005b1fdf
call fcn.005b1fdf
call fcn.005b1fdf
call fcn.005b1fdf
call fcn.005b1fdf
call fcn.005b1fdf
int3