Function at 0x46a3a0
Capabilities:
Check if file exists
Copy file
Get file attributes
Set registry value
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x491ace
mov eax, dword fs:[0]
push eax
sub esp, 0x2dc
mov eax, dword [0x4b6798]
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 eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x2ac], eax
mov dword [ebp - 0x2b4], ecx
mov eax, 7
xor ebx, ebx
xor ecx, ecx
mov dword [ebp - 0x2bc], esi
mov dword [ebp - 0x2a8], edx
mov dword [ebp - 0x290], eax
mov dword [ebp - 0x294], ebx
mov word [ebp - 0x2a4], cx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x274], 0xf
mov dword [ebp - 0x278], ebx
mov byte [ebp - 0x288], bl
xor edx, edx
mov dword [ebp - 0x258], eax
mov dword [ebp - 0x25c], ebx
mov word [ebp - 0x26c], dx
mov dword [ebp - 0x2c8], ebx
mov dword [ebp - 0x2c4], ebx
mov dword [ebp - 0x2c0], ebx
mov dword [ebp - 0x2d8], ebx
mov dword [ebp - 0x2d4], ebx
mov dword [ebp - 0x2d0], ebx
mov byte [ebp - 4], 4
mov dword [ebp - 0x2dc], 0x1000
mov dword [ebp - 0x2e4], ebx
mov byte [ebp - 0x2e0], bl
mov dword [ebp - 0x2b0], ebx
cmp esi, ebx
jne 0x46a489
mov esi, 0x4a3ff4
mov dword [ebp - 0x2bc], esi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
add eax, eax
mov dword [ebp - 0x2b8], eax
call fcn.00486070
mov edi, esp
xor eax, eax
cmp edi, ebx
je 0x46a4c6
mov ecx, dword [ebp - 0x2b8]
push ecx
push edi
push 0xffffffffffffffff
push esi
push ebx
push 0xfde9
mov word [edi], ax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
neg eax
sbb eax, eax
and eax, edi
mov esi, dword [ebp - 0x2ac]
mov edi, eax
mov eax, esi
call fcn.0046a0a0
mov eax, dword [ebp - 0x2b4]
cmp eax, ebx
je 0x46a6c5
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x46a4e6
sub eax, edx
mov edi, eax
je 0x46a6c5
lea esi, [ebp - 0x2d8]
call fcn.004432a0
mov edx, dword [ebp - 0x2d8]
mov eax, dword [ebp - 0x2b4]
push edx
push edi
push eax
lea edi, [ebp - 0x2e4]
call fcn.00418a30
mov esi, dword [ebp - 0x2ac]
add esi, 0x3c
add esp, 0xc
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x2b4], eax
jb 0x46a538
mov eax, dword [esi]
jmp 0x46a53a
mov eax, esi
push ebx
push ebx
push 2
push ebx
push ebx
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x2b8], ebx
cmp edi, 0xffffffff
je 0x46a57d
mov edx, dword [ebp - 0x2b4]
mov eax, dword [ebp - 0x2d8]
push ebx
lea ecx, [ebp - 0x2b8]
push ecx
push edx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push esi
or eax, 0xffffffff
lea ecx, [ebp - 0x2a4]
call fcn.004097e0
xor eax, eax
mov word [ebp - 0x234], ax
mov edi, 7
push 2
mov eax, 0x49bce0
lea esi, [ebp - 0x234]
mov dword [ebp - 0x220], edi
mov dword [ebp - 0x224], ebx
call fcn.00409bc0
mov byte [ebp - 4], 5
xor ecx, ecx
push 1
mov eax, 0x49c478
lea esi, [ebp - 0x250]
mov dword [ebp - 0x23c], edi
mov dword [ebp - 0x240], ebx
mov word [ebp - 0x250], cx
call fcn.00409bc0
lea edx, [ebp - 0x234]
push edx
mov eax, esi
push eax
lea ecx, [ebp - 0x2a4]
push ecx
mov byte [ebp - 4], 6
call fcn.0046ecb0
mov esi, 8
add esp, 0xc
cmp dword [ebp - 0x23c], esi
jb 0x46a61d
mov edx, dword [ebp - 0x250]
push edx
call fcn.004736d0
add esp, 4
xor eax, eax
mov byte [ebp - 4], 4
mov dword [ebp - 0x23c], edi
mov dword [ebp - 0x240], ebx
mov word [ebp - 0x250], ax
cmp dword [ebp - 0x220], esi
jb 0x46a64d
mov ecx, dword [ebp - 0x234]
push ecx
call fcn.004736d0
add esp, 4
cmp dword [ebp - 0x2a8], ebx
je 0x46a74c
mov edx, dword [ebp - 0x2a8]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edi, [eax + eax + 2]
mov eax, edi
call fcn.00486070
mov esi, esp
xor eax, eax
cmp esi, ebx
je 0x46a699
mov ecx, dword [ebp - 0x2a8]
push edi
push esi
push 0xffffffffffffffff
push ecx
push ebx
push 0xfde9
mov word [esi], ax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
neg eax
sbb eax, eax
and eax, esi
mov ecx, eax
lea esi, [ecx + 2]
mov edi, edi
mov dx, word [ecx]
add ecx, 2
cmp dx, bx
jne 0x46a6a0
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [ebp - 0x26c]
call fcn.00409bc0
mov edi, 7
jmp 0x46a8b9
push 0x104
lea ecx, [ebp - 0x218]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
cmp eax, ebx
jne 0x46a6f1
mov dword [ebp - 0x2b0], 0x80004005
mov esi, dword [ebp - 0x2b0]
jmp 0x46ab99
add esi, 0x3c
cmp dword [esi + 0x14], 8
jb 0x46a6fe
mov eax, dword [esi]
jmp 0x46a700
mov eax, esi
push ebx
push eax
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
cmp eax, ebx
jne 0x46a57d
cmp dword [esi + 0x14], 8
jb 0x46a721
mov eax, dword [esi]
jmp 0x46a723
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x46a737
test al, 0x10
je 0x46a57d
mov dword [ebp - 0x2b0], 0x80004005
mov esi, dword [ebp - 0x2b0]
jmp 0x46ab99
lea edx, [ebp - 0x288]
push edx
push 0x85
call fcn.0046edb0
add esp, 8
cmp dword [ebp - 0x274], 0x10
jb 0x46a7c0
mov eax, dword [ebp - 0x288]
mov dword [ebp - 0x2a8], eax
cmp eax, ebx
je 0x46a7d3
mov ecx, dword [ebp - 0x2a8]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edi, [eax + eax + 2]
mov eax, edi
call fcn.00486070
mov esi, esp
cmp esi, ebx
je 0x46a7ce
mov eax, dword [ebp - 0x2a8]
push edi
push esi
push 0xffffffffffffffff
push eax
push ebx
xor edx, edx
push 0xfde9
mov word [esi], dx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
neg eax
sbb eax, eax
and eax, esi
mov edi, 7
jmp 0x46a7d5
lea eax, [ebp - 0x288]
mov dword [ebp - 0x2a8], eax
jmp 0x46a779
mov edi, 7
xor eax, eax
mov ecx, eax
lea esi, [ecx + 2]
lea ebx, [ebx]
mov dx, word [ecx]
add ecx, 2
cmp dx, bx
jne 0x46a7e0
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [ebp - 0x26c]
call fcn.00409bc0
xor ecx, ecx
push 0x186
mov eax, str._chrome_extension:__bjndombghfcohmonofdcfnhjldidnmhd_____chrome_extension:__knnoopddfdgdabjanjmeodpkmlhapkkl_____chrome_extension:__hehijbfgiekmjfkfjpbkbammjbdenadd_____chrome_extension:__ncdgipmkgkhennagnfmnlkflidilhbdi_____chrome_extension:__npjkkakdacjaihjaoeliacmecofghagh_____chrome_extension:__almljgkjodjgoldenkijomojnejpkcjk_____chrome_extension:__lfcnklibhpibaknkjjbgbnebephkcomf__
lea esi, [ebp - 0x234]
mov dword [ebp - 0x220], edi
mov dword [ebp - 0x224], ebx
mov word [ebp - 0x234], cx
call fcn.00409bc0
mov byte [ebp - 4], 7
xor edx, edx
push 0xf
mov eax, str.ALLOWED_ORIGINS
lea esi, [ebp - 0x250]
mov dword [ebp - 0x23c], edi
mov dword [ebp - 0x240], ebx
mov word [ebp - 0x250], dx
call fcn.00409bc0
lea eax, [ebp - 0x234]
push eax
mov ecx, esi
push ecx
lea edx, [ebp - 0x26c]
push edx
mov byte [ebp - 4], 8
call fcn.0046ecb0
mov esi, 8
add esp, 0xc
cmp dword [ebp - 0x23c], esi
jb 0x46a889
mov eax, dword [ebp - 0x250]
push eax
call fcn.004736d0
add esp, 4
xor ecx, ecx
mov byte [ebp - 4], 4
mov dword [ebp - 0x23c], edi
mov dword [ebp - 0x240], ebx
mov word [ebp - 0x250], cx
cmp dword [ebp - 0x220], esi
jb 0x46a8b9
mov edx, dword [ebp - 0x234]
push edx
call fcn.004736d0
add esp, 4
xor eax, eax
mov word [ebp - 0x234], ax
push 0xb
mov eax, str.HELPER_PATH
lea esi, [ebp - 0x234]
mov dword [ebp - 0x220], edi
mov dword [ebp - 0x224], ebx
call fcn.00409bc0
lea ecx, [ebp - 0x2a4]
push ecx
mov edx, esi
push edx
lea eax, [ebp - 0x26c]
push eax
mov byte [ebp - 4], 9
call fcn.0046ecb0
mov esi, 8
add esp, 0xc
cmp dword [ebp - 0x220], esi
jb 0x46a919
mov ecx, dword [ebp - 0x234]
push ecx
call fcn.004736d0
add esp, 4
mov eax, dword [ebp - 0x2ac]
add eax, 4
mov dword [ebp - 0x2a8], eax
cmp dword [eax + 0x14], esi
jb 0x46a92f
mov eax, dword [eax]
push ebx
push ebx
push 2
push ebx
push ebx
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x46a970
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x46a95c
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
cmp esi, ebx
jl 0x46ab75
mov esi, 0x80004005
jmp 0x46ab75
cmp dword [ebp - 0x258], esi
jb 0x46a98c
mov eax, dword [ebp - 0x26c]
mov dword [ebp - 0x2ac], eax
cmp eax, ebx
jne 0x46a998
xor esi, esi
jmp 0x46a9d3
lea edx, [ebp - 0x26c]
mov dword [ebp - 0x2ac], edx
mov eax, dword [ebp - 0x2ac]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [eax*4 + 1]
cmp esi, 0x3fffffff
jle 0x46a9b8
xor esi, esi
jmp 0x46a9d3
mov eax, esi
call fcn.00486070
mov eax, dword [ebp - 0x2ac]
mov edx, esp
lea ecx, [esi + esi]
mov esi, edx
call fcn.00422b80
mov esi, eax
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
cmp al, bl
jne 0x46a9d8
push ebx
sub ecx, edx
lea edx, [ebp - 0x2e8]
push edx
push ecx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, ebx
jne 0x46aa27
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x46aa13
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
cmp esi, ebx
jl 0x46ab75
mov esi, 0x80004005
jmp 0x46ab75
push ebx
push 0x2001f
lea eax, [ebp - 0x2c8]
push eax
mov eax, str.SOFTWAREGoogleChromeNativeMessagingHosts_net.ietab.ietabhelper.peruser
mov ecx, SysReAllocString
call fcn.0040f4c0
test eax, eax
je 0x46aa6f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x46aa5b
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
cmp esi, ebx
jl 0x46ab75
mov esi, 0x80004005
jmp 0x46ab75
mov ecx, dword [ebp - 0x2a8]
cmp dword [ecx + 0x14], 8
jb 0x46aa81
mov edx, ecx
mov esi, dword [edx]
jmp 0x46aa83
mov esi, ecx
cmp esi, ebx
je 0x46aaa9
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x2c8]
lea eax, [eax + eax + 2]
push eax
push esi
push 1
push ebx
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp eax, ebx
je 0x46aad1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x46aabd
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
cmp esi, ebx
jl 0x46ab75
mov esi, 0x80004005
jmp 0x46ab75
push ebx
push 0x20006
lea edx, [ebp - 0x2c8]
push edx
mov eax, str.SOFTWAREIE_Tab
mov ecx, SysReAllocString
call fcn.0040f4c0
test eax, eax
je 0x46ab12
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x46ab05
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
cmp esi, ebx
jl 0x46ab75
mov esi, 0x80004005
jmp 0x46ab75
mov edi, dword [ebp - 0x2bc]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [eax + eax + 2]
mov eax, esi
call fcn.00486070
mov ecx, esp
mov edx, esi
mov eax, edi
mov esi, ecx
call fcn.00409720
push str.CurrentVersion
lea ecx, [ebp - 0x2c8]
push ecx
mov esi, eax
call fcn.0041e1b0
test eax, eax
je 0x46ab6f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x46ab62
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
cmp esi, ebx
jl 0x46ab75
mov esi, 0x80004005
jmp 0x46ab75
mov esi, dword [ebp - 0x2b0]
mov eax, dword [ebp - 0x2d8]
cmp eax, ebx
je 0x46ab88
push eax
call fcn.004736d0
add esp, 4
mov eax, dword [ebp - 0x2c8]
cmp eax, ebx
je 0x46ab99
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, 8
cmp dword [ebp - 0x258], edi
jb 0x46abb5
mov edx, dword [ebp - 0x26c]
push edx
call fcn.004736d0
add esp, 4
xor eax, eax
cmp dword [ebp - 0x274], 0x10
mov dword [ebp - 0x258], 7
mov dword [ebp - 0x25c], ebx
mov word [ebp - 0x26c], ax
jb 0x46abe6
mov ecx, dword [ebp - 0x288]
push ecx
call fcn.004736d0
add esp, 4
mov dword [ebp - 0x274], 0xf
mov dword [ebp - 0x278], ebx
mov byte [ebp - 0x288], bl
cmp dword [ebp - 0x290], edi
jb 0x46ac13
mov edx, dword [ebp - 0x2a4]
push edx
call fcn.004736d0
add esp, 4
mov eax, esi
lea esp, [ebp - 0x2f8]
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.004736db
mov esp, ebp
pop ebp
ret 8