Function at 0x4285e0
Capabilities:
Swap mouse buttons

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push 0x403516
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
mov eax, 0x74
call sub.MSVBVM60.DLL___vbaChkstk
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x14], 0x4027b0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 1
mov dword [ebp - 4], 2
push 0xffffffffffffffff
call dword [sym.imp.MSVBVM60.DLL___vbaOnError]
mov dword [ebp - 4], 3
push 0x43a5c8
push 0
call dword [sym.imp.MSVBVM60.DLL___vbaErase]
mov dword [ebp - 4], 4
mov word [ebp - 0x28], 0
mov dword [ebp - 4], 5
push 0
push 0
call fcn.00405dec
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
mov dword [ebp - 4], 6
push 0
push 0xffffffffffffffff
push 0
push 0
lea eax, [ebp - 0x54]
push eax
push 0x10
push 0x880
call dword [sym.imp.MSVBVM60.DLL___vbaRedim]
add esp, 0x1c
lea ecx, [ebp - 0x54]
push ecx
mov edx, dword [0x43a2c0]
push edx
push 0x43a714
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaStrVarVal]
push eax
call fcn.00424b10
mov dword [ebp - 0x68], eax
lea ecx, [ebp - 0x54]
push ecx
push 0
call dword [sym.imp.MSVBVM60.DLL___vbaErase]
mov edx, dword [ebp - 0x68]
mov dword [ebp - 0x2c], edx
lea ecx, [ebp - 0x30]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
mov dword [ebp - 4], 7
call fcn.00405f80
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
mov dword [ebp - 4], 8
mov word [ebp - 0x74], 0x19
mov word [ebp - 0x70], 1
mov word [ebp - 0x24], 0
jmp 0x428705
mov ax, word [ebp - 0x24]
add ax, word [ebp - 0x70]
mov word [ebp - 0x24], ax
mov cx, word [ebp - 0x24]
cmp cx, word [ebp - 0x74]
jg 0x428890
mov dword [ebp - 4], 9
movsx edx, word [ebp - 0x24]
mov dword [ebp - 0x8c], edx
fild dword [ebp - 0x8c]
sub esp, 8
fstp qword [esp]
push 0x40000000
push 0
call dword [sym.imp.MSVBVM60.DLL___vbaPowerR8]
call dword [sym.imp.MSVBVM60.DLL___vbaFpI2]
movsx eax, ax
mov ecx, dword [ebp - 0x2c]
and ecx, eax
movsx edx, cx
test edx, edx
je 0x428884
mov dword [ebp - 4], 0xa
push 0
movsx eax, word [ebp - 0x28]
push eax
push 1
push 8
push 0x43a5c8
push 4
push 0x180
call dword [sym.imp.MSVBVM60.DLL___vbaRedimPreserve]
add esp, 0x1c
mov dword [ebp - 4], 0xb
mov cx, word [ebp - 0x24]
add cx, 0x41
movsx edx, cx
push edx
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.MSVBVM60.DLL_rtcVarBstrFromAnsi]
cmp dword [0x43a5c8], 0
je 0x4287f2
mov ecx, dword [0x43a5c8]
cmp word [ecx], 1
jne 0x4287f2
movsx edx, word [ebp - 0x28]
mov eax, dword [0x43a5c8]
sub edx, dword [eax + 0x14]
mov dword [ebp - 0x6c], edx
mov ecx, dword [0x43a5c8]
mov edx, dword [ebp - 0x6c]
cmp edx, dword [ecx + 0x10]
jae 0x4287d8
mov dword [ebp - 0x90], 0
jmp 0x4287e4
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov dword [ebp - 0x90], eax
mov eax, dword [ebp - 0x6c]
shl eax, 2
mov dword [ebp - 0x94], eax
jmp 0x4287fe
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov dword [ebp - 0x94], eax
lea ecx, [ebp - 0x40]
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaStrVarMove]
mov edx, eax
lea ecx, [ebp - 0x30]
call dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
mov edx, eax
mov eax, dword [0x43a5c8]
mov ecx, dword [eax + 0xc]
add ecx, dword [ebp - 0x94]
call dword [sym.imp.MSVBVM60.DLL___vbaStrCopy]
lea ecx, [ebp - 0x30]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
lea ecx, [ebp - 0x40]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVar]
mov dword [ebp - 4], 0xc
mov cx, word [ebp - 0x28]
add cx, 1
mov word [ebp - 0x28], cx
mov dword [ebp - 4], 0xd
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x40], 2
lea edx, [ebp - 0x40]
push edx
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.MSVBVM60.DLL_rtcVarFromError]
lea ecx, [ebp - 0x50]
push ecx
lea edx, [ebp - 0x40]
push edx
push 2
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVarList]
add esp, 0xc
mov dword [ebp - 4], 0xf
jmp 0x4286f9
mov dword [ebp - 4], 0x10
push 0
call dword [sym.imp.USER32.DLL_SwapMouseButton]
wait
push 0x4288d1
jmp 0x4288d0
ret