Function at 0x421350
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, 0xec
call sub.MSVBVM60.DLL___vbaChkstk
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x14], 0x401f78
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 1
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x40]
call dword [sym.imp.MSVBVM60.DLL___vbaStrCopy]
mov dword [ebp - 4], 2
push 0xffffffffffffffff
call dword [sym.imp.MSVBVM60.DLL___vbaOnError]
mov dword [ebp - 4], 3
lea eax, [ebp - 0x40]
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x8c], 0x4008
push 0
push 0x80
lea ecx, [ebp - 0x8c]
push ecx
lea edx, [ebp - 0x58]
push edx
call dword [sym.imp.MSVBVM60.DLL_rtcStrConvVar2]
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x7c]
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaVar2Vec]
lea edx, [ebp - 0x7c]
push edx
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaAryMove]
lea ecx, [ebp - 0x58]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVar]
mov dword [ebp - 4], 4
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
mov dword [ebp - 0x3c], edx
mov dword [ebp - 4], 5
mov eax, dword [ebp - 0x34]
push eax
push 1
call dword [sym.imp.MSVBVM60.DLL___vbaUbound]
mov dword [ebp - 0x24], eax
mov dword [ebp - 4], 6
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x58], 2
lea ecx, [ebp - 0x58]
push ecx
lea edx, [ebp - 0x68]
push edx
call dword [sym.imp.MSVBVM60.DLL_rtcVarFromError]
lea eax, [ebp - 0x68]
push eax
lea ecx, [ebp - 0x58]
push ecx
push 2
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVarList]
add esp, 0xc
mov dword [ebp - 4], 7
mov dword [ebp - 0x60], 0x80020004
mov dword [ebp - 0x68], 0xa
mov dword [ebp - 0x50], 0x80020004
mov dword [ebp - 0x58], 0xa
lea edx, [ebp - 0x68]
push edx
lea eax, [ebp - 0x58]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.MSVBVM60.DLL_rtcIPMT]
fstp qword [ebp - 0xa4]
lea ecx, [ebp - 0x68]
push ecx
lea edx, [ebp - 0x58]
push edx
push 2
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVarList]
add esp, 0xc
mov dword [ebp - 4], 8
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0xbc], eax
mov dword [ebp - 0xb8], 1
mov dword [ebp - 0x30], 0
jmp 0x4214eb
mov ecx, dword [ebp - 0x30]
add ecx, dword [ebp - 0xb8]
mov dword [ebp - 0x30], ecx
mov edx, dword [ebp - 0x30]
cmp edx, dword [ebp - 0xbc]
jg 0x4216dd
mov dword [ebp - 4], 9
cmp dword [ebp - 0x34], 0
je 0x421553
mov eax, dword [ebp - 0x34]
cmp word [eax], 1
jne 0x421553
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x30]
sub edx, dword [ecx + 0x14]
mov dword [ebp - 0xa8], edx
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0xa8]
cmp ecx, dword [eax + 0x10]
jae 0x421539
mov dword [ebp - 0xdc], 0
jmp 0x421545
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov dword [ebp - 0xdc], eax
mov edx, dword [ebp - 0xa8]
mov dword [ebp - 0xe0], edx
jmp 0x42155f
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov dword [ebp - 0xe0], eax
xor eax, eax
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax + 0xc]
mov edx, dword [ebp - 0xe0]
xor eax, eax
mov al, byte [ecx + edx]
mov ecx, dword [ebp - 0x3c]
add ecx, eax
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 4], 0xa
cmp dword [0x43ac24], 0
jne 0x4215a6
push 0x43ac24
push 0x4060a0
call dword [sym.imp.MSVBVM60.DLL___vbaNew2]
mov dword [ebp - 0xe4], 0x43ac24
jmp 0x4215b0
mov dword [ebp - 0xe4], 0x43ac24
mov edx, dword [ebp - 0xe4]
mov eax, dword [edx]
mov dword [ebp - 0xa8], eax
lea ecx, [ebp - 0x48]
push ecx
mov edx, dword [ebp - 0xa8]
mov eax, dword [edx]
mov ecx, dword [ebp - 0xa8]
push ecx
call dword [eax + 0x1c]
fnclex
mov dword [ebp - 0xac], eax
cmp dword [ebp - 0xac], 0
jge 0x421608
push 0x1c
push 0x406090
mov edx, dword [ebp - 0xa8]
push edx
mov eax, dword [ebp - 0xac]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
mov dword [ebp - 0xe8], eax
jmp 0x421612
mov dword [ebp - 0xe8], 0
mov ecx, dword [ebp - 0x48]
mov dword [ebp - 0xb0], ecx
mov dword [ebp - 0x84], 0x80020004
mov dword [ebp - 0x8c], 0xa
mov eax, 0x10
call sub.MSVBVM60.DLL___vbaChkstk
mov edx, esp
mov eax, dword [ebp - 0x8c]
mov dword [edx], eax
mov ecx, dword [ebp - 0x88]
mov dword [edx + 4], ecx
mov eax, dword [ebp - 0x84]
mov dword [edx + 8], eax
mov ecx, dword [ebp - 0x80]
mov dword [edx + 0xc], ecx
push 0
call dword [sym.imp.MSVBVM60.DLL___vbaStrI2]
mov edx, eax
lea ecx, [ebp - 0x44]
call dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
push eax
mov edx, dword [ebp - 0xb0]
mov eax, dword [edx]
mov ecx, dword [ebp - 0xb0]
push ecx
call dword [eax + 0x60]
fnclex
mov dword [ebp - 0xb4], eax
cmp dword [ebp - 0xb4], 0
jge 0x4216b5
push 0x60
push 0x4060b0
mov edx, dword [ebp - 0xb0]
push edx
mov eax, dword [ebp - 0xb4]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
mov dword [ebp - 0xec], eax
jmp 0x4216bf
mov dword [ebp - 0xec], 0
lea ecx, [ebp - 0x44]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
lea ecx, [ebp - 0x48]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeObj]
mov dword [ebp - 4], 0xb
jmp 0x4214df
mov dword [ebp - 4], 0xc
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0xc4], ecx
mov dword [ebp - 0xc0], 1
mov dword [ebp - 0x30], 0
jmp 0x42170c
mov edx, dword [ebp - 0x30]
add edx, dword [ebp - 0xc0]
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x30]
cmp eax, dword [ebp - 0xc4]
jg 0x42197e
mov dword [ebp - 4], 0xd
mov ecx, dword [ebp - 0x24]
add ecx, 1
mov dword [ebp - 0x84], ecx
mov dword [ebp - 0x8c], 3
push 0
lea edx, [ebp - 0x58]
push edx
call fcn.0042f550
lea eax, [ebp - 0x8c]
push eax
lea ecx, [ebp - 0x58]
push ecx
lea edx, [ebp - 0x68]
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaVarMul]
push eax
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaVarInt]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaI4Var]
mov dword [ebp - 0x2c], eax
lea ecx, [ebp - 0x58]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVar]
mov dword [ebp - 4], 0xe
push 0
call dword [sym.imp.USER32.DLL_SwapMouseButton]
mov dword [ebp - 4], 0xf
cmp dword [ebp - 0x34], 0
je 0x4217de
mov ecx, dword [ebp - 0x34]
cmp word [ecx], 1
jne 0x4217de
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x30]
sub eax, dword [edx + 0x14]
mov dword [ebp - 0xa8], eax
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0xa8]
cmp edx, dword [ecx + 0x10]
jae 0x4217c4
mov dword [ebp - 0xf0], 0
jmp 0x4217d0
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov dword [ebp - 0xf0], eax
mov eax, dword [ebp - 0xa8]
mov dword [ebp - 0xf4], eax
jmp 0x4217ea
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov dword [ebp - 0xf4], eax
mov ecx, dword [ebp - 0x34]
mov edx, dword [ecx + 0xc]
mov eax, dword [ebp - 0xf4]
mov cl, byte [edx + eax]
mov byte [ebp - 0x38], cl
mov dword [ebp - 4], 0x10
cmp dword [ebp - 0x34], 0
je 0x421855
mov edx, dword [ebp - 0x34]
cmp word [edx], 1
jne 0x421855
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x2c]
sub ecx, dword [eax + 0x14]
mov dword [ebp - 0xac], ecx
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0xac]
cmp eax, dword [edx + 0x10]
jae 0x42183b
mov dword [ebp - 0xf8], 0
jmp 0x421847
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov dword [ebp - 0xf8], eax
mov ecx, dword [ebp - 0xac]
mov dword [ebp - 0xfc], ecx
jmp 0x421861
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov dword [ebp - 0xfc], eax
cmp dword [ebp - 0x34], 0
je 0x4218b3
mov edx, dword [ebp - 0x34]
cmp word [edx], 1
jne 0x4218b3
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x30]
sub ecx, dword [eax + 0x14]
mov dword [ebp - 0xa8], ecx
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0xa8]
cmp eax, dword [edx + 0x10]
jae 0x421899
mov dword [ebp - 0x100], 0
jmp 0x4218a5
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov dword [ebp - 0x100], eax
mov ecx, dword [ebp - 0xa8]
mov dword [ebp - 0x104], ecx
jmp 0x4218bf
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov dword [ebp - 0x104], eax
mov edx, dword [ebp - 0x34]
mov eax, dword [edx + 0xc]
mov ecx, dword [ebp - 0x34]
mov edx, dword [ecx + 0xc]
mov ecx, dword [ebp - 0x104]
mov esi, dword [ebp - 0xfc]
mov al, byte [eax + esi]
mov byte [edx + ecx], al
mov dword [ebp - 4], 0x11
cmp dword [ebp - 0x34], 0
je 0x421936
mov ecx, dword [ebp - 0x34]
cmp word [ecx], 1
jne 0x421936
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x2c]
sub eax, dword [edx + 0x14]
mov dword [ebp - 0xa8], eax
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0xa8]
cmp edx, dword [ecx + 0x10]
jae 0x42191c
mov dword [ebp - 0x108], 0
jmp 0x421928
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov dword [ebp - 0x108], eax
mov eax, dword [ebp - 0xa8]
mov dword [ebp - 0x10c], eax
jmp 0x421942
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov dword [ebp - 0x10c], eax
mov ecx, dword [ebp - 0x34]
mov edx, dword [ecx + 0xc]
mov eax, dword [ebp - 0x10c]
mov cl, byte [ebp - 0x38]
mov byte [edx + eax], cl
mov dword [ebp - 4], 0x12
push 0
push 0
push 0
push 0
push 0
push 0
call fcn.00405e94
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
mov dword [ebp - 4], 0x13
jmp 0x421700
mov dword [ebp - 4], 0x14
lea edx, [ebp - 0x34]
mov dword [ebp - 0x84], edx
mov dword [ebp - 0x8c], 0x6011
push 0
push 0x40
lea eax, [ebp - 0x8c]
push eax
lea ecx, [ebp - 0x58]
push ecx
call dword [sym.imp.MSVBVM60.DLL_rtcStrConvVar2]
lea edx, [ebp - 0x58]
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaStrVarMove]
mov edx, eax
lea ecx, [ebp - 0x28]
call dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
lea ecx, [ebp - 0x58]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVar]
wait
push 0x421a32
jmp 0x421a1c
lea edx, [ebp - 0x34]
push edx
push 0
call dword [sym.imp.MSVBVM60.DLL___vbaAryDestruct]
lea ecx, [ebp - 0x40]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
ret